Python nosetests final report

I use the nosetests command to execute python files and I often run 100+ python files in a single snapshot, many times the test file will be skipped based on the @attr value. Is there a plugin available to get a summary of the test result or summary information, as shown below.

Test1 --> passed
Test2 --> failed
Test3 --> error
Test4 --> skipped
+4
source share
1 answer

Nostest results can be output in XML using the Xunit parameter:

If at the command prompt, enter the following:

$ nosetests --help

This gives a number of options for media, including the required parameter, i.e.

--with-xunit
+1
source

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


All Articles