August 2018
Beginner
160 pages
4h 8m
English
Pytest shows rich traceback information on failing tests. The extra information is great, but the actual footer is not very helpful in identifying which tests have actually failed:
...________________________ test_type_checking _________________________ def test_type_checking():> assert 0E assert 0tests\core\test_core.py:12: AssertionError=============== 14 failed, 17 passed in 5.68 seconds ================
The -ra flag can be passed to produce a nice summary with the full name of all failing tests at the end of the session:
...________________________ test_type_checking _________________________ def test_type_checking():> assert 0E assert 0tests\core\test_core.py:12: AssertionError====================== short ...
Read now
Unlock full access