summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-01-08 12:31:09 +0100
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-01-08 12:31:09 +0100
commit12a6235afa0bd6ab4e769cfdb770f2921de90b1e (patch)
treef730ba412a08a82eb76bade5b573062965cd77e2 /doc
parent4d9de7147c875039fb0fd84e57106f5695cfbc23 (diff)
downloadlogilab-common-12a6235afa0bd6ab4e769cfdb770f2921de90b1e.tar.gz
fixed lintian warning and errors
Diffstat (limited to 'doc')
-rw-r--r--doc/pytest.162
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/pytest.1 b/doc/pytest.1
new file mode 100644
index 0000000..2425fa2
--- /dev/null
+++ b/doc/pytest.1
@@ -0,0 +1,62 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
+.TH PYTEST "1" "January 2008" "run python unit tests" "User Commands"
+.SH NAME
+pytest
+.SH DESCRIPTION
+usage: pytest [OPTIONS] [testfile [testpattern]]
+.PP
+examples:
+.PP
+pytest path/to/mytests.py
+pytest path/to/mytests.py TheseTests
+pytest path/to/mytests.py TheseTests.test_thisone
+.PP
+pytest one (will run both test_thisone and test_thatone)
+pytest path/to/mytests.py \fB\-s\fR not (will skip test_notthisone)
+.PP
+pytest \fB\-\-coverage\fR test_foo.py
+.IP
+(only if logilab.devtools is available)
+.SS "options:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.TP
+\fB\-t\fR TESTDIR
+directory where the tests will be found
+.TP
+\fB\-d\fR
+enable design\-by\-contract
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Verbose output
+.TP
+\fB\-i\fR, \fB\-\-pdb\fR
+Enable test failure inspection (conflicts with
+\fB\-\-coverage\fR)
+.TP
+\fB\-x\fR, \fB\-\-exitfirst\fR
+Exit on first failure (only make sense when pytest run
+one test file)
+.TP
+\fB\-c\fR, \fB\-\-capture\fR
+Captures and prints standard out/err only on errors
+(only make sense when pytest run one test file)
+.TP
+\fB\-p\fR PRINTONLY, \fB\-\-printonly\fR=\fIPRINTONLY\fR
+Only prints lines matching specified pattern (implies
+capture) (only make sense when pytest run one test
+file)
+.TP
+\fB\-s\fR SKIPPED, \fB\-\-skip\fR=\fISKIPPED\fR
+test names matching this name will be skipped to skip
+several patterns, use commas
+.TP
+\fB\-q\fR, \fB\-\-quiet\fR
+Minimal output
+.TP
+\fB\-P\fR PROFILE, \fB\-\-profile\fR=\fIPROFILE\fR
+Profile execution and store data in the given file
+.TP
+\fB\-\-coverage\fR
+run tests with pycoverage (conflicts with \fB\-\-pdb\fR)