Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(2) | Call(1) | Derive(0) | Import(1)
def help(): help_string = """ Naked test Command Help ======================= The test command allows you to run unit tests from any working directory in your project. USAGE naked test[argument] SECONDARY COMMANDS nose - run the nose test runner on your project pytest - run the py.test test runner on your project tox - run the tox test runner on your project unittest - run Python unit tests (built-in) ARGUMENTS nose -- does not take additional arguments pytest -- does not take additional arguments tox [python version] -- You can include an optional tox Python version argument to run your tests with a single version of Python (instead of the versions specified in the tox.ini file). By default, the versions specified in your tox.ini file are run. unittest -- Mandatory unit test file path (relative to the tests directory) OPTIONS none EXAMPLES naked test nose naked test pytest naked test tox naked test tox py27 naked test unittest test_app.py A bottom to top search (from the working directory) is performed over up to 6 directory levels to find the 'tests' directory.""" print(help_string) exit_success()
if c.argc > 1: if c.cmd2 == "help": from Naked.commands.test import help as tox_help tox_help() elif c.cmd2 == "nose":