./justice/__init__.pytestimony.pytests/__init__.pytestimony_tests.py
$ nosetests --verbosity 2 tests/NO: this is not a test ... okYES: test_bar ... okYES: test_foo ... ok----------------------------------------------------------------------Ran 3 tests in 0.001s
-- Use the @nottest decorator throughout our project (not convenient for our project and team).-- Supply full paths, with module names, on the command line (even less convenient).-- Write our our plugin (fun, but hoping for something less involved).
--testmatch
to a suitable regex should help. -m
=REGEX
,
--match
=REGEX
,
--testmatch
=REGEX
Files, directories, function names, and class names that match this regular expression are considered tests. Default: (?:\b|_)[Tt]est [NOSE_TESTMATCH]