From 3fe811ed7f817f010520183a6069cb89c6b5075d Mon Sep 17 00:00:00 2001 From: Dave Bouvier Date: Mon, 11 Jan 2021 21:44:48 -0500 Subject: [PATCH 1/2] Update coverage documentation. --- run_tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 6438b765d54..3f9119713fd 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -149,6 +149,9 @@ Extra options: --verbose_errors Force some tests produce more verbose error reporting. --no_cleanup Do not delete temp files for Python functional tests (-toolshed, -framework, etc...) + --coverage Generate a test coverage report. This option currently + should work with every test that uses pytest, but the + results may not be reliable for e.g. selenium tests. --debug On python test error or failure invoke a pdb shell for interactive debugging of the test --report_file Path of HTML report to produce (for Python Galaxy @@ -506,7 +509,7 @@ do shift ;; -c|--coverage) - # Must have coverage installed (try `which coverage`) - only valid with --unit + # Must have coverage installed (try `which coverage`) - only works with pytest # for now. Would be great to get this to work with functional tests though. coverage_arg="--with-coverage" shift From 8d5d2e91a97911fb5225c1273f3cfcd4514de5ed Mon Sep 17 00:00:00 2001 From: Dave Bouvier Date: Mon, 11 Jan 2021 21:59:32 -0500 Subject: [PATCH 2/2] Grammar. --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 3f9119713fd..c9b075e719e 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -151,7 +151,8 @@ Extra options: (-toolshed, -framework, etc...) --coverage Generate a test coverage report. This option currently should work with every test that uses pytest, but the - results may not be reliable for e.g. selenium tests. + results may not be reliable with selenium or other + frameworks that primarily test the client. --debug On python test error or failure invoke a pdb shell for interactive debugging of the test --report_file Path of HTML report to produce (for Python Galaxy