-
Skip a unittest
-
@pytest.mark.skip(reason="Not Implemented")
-
-
Run a test by keyword expression:
pytest -k "MyClass and not method"
-
This will run tests which contain names that match the given
string expression, which can include Python operators that use filenames,
class names and function names as variables. The example above will run
TestMyClass.test_something
but notTestMyClass.test_method_simple
-
This will run tests which contain names that match the given
string expression, which can include Python operators that use filenames,
class names and function names as variables. The example above will run
-
See all printing statements - force pytest to dump all output:
pytest -s
-
man pytest
- http://zetcode.com/python/pytest/