XFAIL, Command Line API

pytest - finds all test_ and _test files in all dirs
pytest my_dir - runs all test files inside particular directory
pytest test_4.py - runs test file
pytest test_4.py::test_add - runs test_add function
image
image
Every test essentially has three phases: call, setup, and teardown. Setup and teardown are also called *fixtures* and are a chance for you to add code to get data or the software system under test into a precondition state before the test runs, as well as clean up afterwards if necessary.

-v

Writes which test passed, failed

image

-tb=no

image
SuperMade with Super