| OLD | NEW |
| (Empty) | |
| 1 .TH pytest "1" "January 2008" pytest |
| 2 .SH NAME |
| 3 .B pytest |
| 4 \- run python unit tests |
| 5 |
| 6 .SH SYNOPSIS |
| 7 usage: pytest [OPTIONS] [testfile [testpattern]] |
| 8 .PP |
| 9 examples: |
| 10 .PP |
| 11 pytest path/to/mytests.py |
| 12 pytest path/to/mytests.py TheseTests |
| 13 pytest path/to/mytests.py TheseTests.test_thisone |
| 14 .PP |
| 15 pytest one (will run both test_thisone and test_thatone) |
| 16 pytest path/to/mytests.py \fB\-s\fR not (will skip test_notthisone) |
| 17 .PP |
| 18 pytest \fB\-\-coverage\fR test_foo.py |
| 19 .IP |
| 20 (only if logilab.devtools is available) |
| 21 .SS "options:" |
| 22 .TP |
| 23 \fB\-h\fR, \fB\-\-help\fR |
| 24 show this help message and exit |
| 25 .TP |
| 26 \fB\-t\fR TESTDIR |
| 27 directory where the tests will be found |
| 28 .TP |
| 29 \fB\-d\fR |
| 30 enable design\-by\-contract |
| 31 .TP |
| 32 \fB\-v\fR, \fB\-\-verbose\fR |
| 33 Verbose output |
| 34 .TP |
| 35 \fB\-i\fR, \fB\-\-pdb\fR |
| 36 Enable test failure inspection (conflicts with |
| 37 \fB\-\-coverage\fR) |
| 38 .TP |
| 39 \fB\-x\fR, \fB\-\-exitfirst\fR |
| 40 Exit on first failure (only make sense when pytest run |
| 41 one test file) |
| 42 .TP |
| 43 \fB\-s\fR SKIPPED, \fB\-\-skip\fR=\fISKIPPED\fR |
| 44 test names matching this name will be skipped to skip |
| 45 several patterns, use commas |
| 46 .TP |
| 47 \fB\-q\fR, \fB\-\-quiet\fR |
| 48 Minimal output |
| 49 .TP |
| 50 \fB\-P\fR PROFILE, \fB\-\-profile\fR=\fIPROFILE\fR |
| 51 Profile execution and store data in the given file |
| 52 .TP |
| 53 \fB\-\-coverage\fR |
| 54 run tests with pycoverage (conflicts with \fB\-\-pdb\fR) |
| OLD | NEW |