Pytest - selective output of test results

I want to fully display the test results. In unittest I can implement my own test runner using the unittest.TextTestRunner example. How can i do the same in pytest ?

+4
source share
1 answer

You will need to work with pytest hooks :

py.test calls hook functions to implement initialization, launch, test execution, and reporting.

See also:

+2
source

Source: https://habr.com/ru/post/1499473/


All Articles