[HUE-4435] Add list_modules subcommand to `hue test` --- .../core/src/desktop/management/commands/test.py | 25 +++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/desktop/core/src/desktop/management/commands/test.py b/desktop/core/src/desktop/management/commands/test.py index 0a25031..3740aa7 100644 --- a/desktop/core/src/desktop/management/commands/test.py +++ b/desktop/core/src/desktop/management/commands/test.py @@ -38,19 +38,21 @@ class Command(BaseCommand): help = textwrap.dedent("""\ Use the following arguments: - all Runs tests for all desktop applications and libraries - Additional arguments are passed to nose. + all Runs tests for all desktop applications and libraries + Additional arguments are passed to nose. - fast Runs the "fast" tests, namely those that don't start Hadoop. + fast Runs the "fast" tests, namely those that don't start Hadoop. - specific Explicitly run specific tests using nose. - For example, to run all the filebrower tests or - to run a specific test function, use - test specific filebrowser - test specific useradmin.tests:test_user_admin - All additional arguments are passed directly to nose. + specific Explicitly run specific tests using nose. + For example, to run all the filebrower tests or + to run a specific test function, use + test specific filebrowser + test specific useradmin.tests:test_user_admin + All additional arguments are passed directly to nose. - windmill Runs windmill tests + windmill Runs windmill tests + + list_modules List test modules for all desktop applications and libraries Common useful extra arguments for nose: --nologcapture @@ -92,6 +94,9 @@ class Command(BaseCommand): ret = test_windmill.Command().handle(*args) elif args[0] in ("specific", "nose"): nose_args = args + elif args[0] == "list_modules": + print '\n'.join(all_apps) + sys.exit(0) else: print self.help sys.exit(1) -- 2.7.4 (Apple Git-66)