August 2018
Beginner
160 pages
4h 8m
English
Pytest can run your tests in a number of ways. Let's quickly get into the basics now and, later on in the chapter, we will move on to more advanced options.
You can start by just simply executing the pytest command:
λ pytest
This will find all of the test_*.py and *_test.py modules in the current directory and below recursively, and will run all of the tests found in those files:
λ pytest tests/core tests/contrib
λ pytest tests/core tests/contrib/test_text_plugin.py
λ pytest tests/core/test_core.py::test_regex_matching
Read now
Unlock full access