Scroll to navigation

logilab-pytest(1) General Commands Manual logilab-pytest(1)

NAME

logilab-pytest - run python unit tests

SYNOPSIS

usage: logilab-pytest [OPTIONS] [testfile [testpattern]]

examples:

logilab-pytest path/to/mytests.py logilab-pytest path/to/mytests.py TheseTests logilab-pytest path/to/mytests.py TheseTests.test_thisone

logilab-pytest one (will run both test_thisone and test_thatone) logilab-pytest path/to/mytests.py -s not (will skip test_notthisone)

logilab-pytest --coverage test_foo.py

(only if logilab.devtools is available)

options:

show this help message and exit
directory where the tests will be found
enable design-by-contract
Verbose output
Enable test failure inspection (conflicts with --coverage)
Exit on first failure (only make sense when logilab-pytest run one test file)
test names matching this name will be skipped to skip several patterns, use commas
Minimal output
Profile execution and store data in the given file
run tests with pycoverage (conflicts with --pdb)
January 2008 logilab-pytest