Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.03 KB

run-tests.rst

File metadata and controls

50 lines (31 loc) · 1.03 KB

How to Run Tests

Pytest

If you have a pytest style script named test_mydata.py, you can run it by typing the following at the command line:

pytest test_mydata.py

You invoke pytest just as you would in any other circumstance---see pytest's standard Usage and Invocations_ for full details.

Unittest

If you have a unittest style script named test_mydata.py, you can run it by typing the following at the command line:

python -m datatest test_mydata.py

Datatest includes a unittest-style test runner that facilitates incremental testing. It runs tests in declaration order (i.e., by line-number) and supports the @mandatory <mandatory> decorator.