Do you know a tool for creating nice html reports for pyunit?
To generate a HTML report for a Selenium test, we have to install a plugin with the command: pip install pytest-html. To generate the report, we have to move from the current directory to the directory of the Pytest file that we want to execute. Then run the command: pytest --html=report. html.
Yes. unittest is a xUnit style frameworkfor Python, it was previously called PyUnit.
I suggest the following:
Nose plug-in documentation: http://nose.readthedocs.org/en/latest/index.html
Another option:
nosetests --with-xunit
. This will produce a nostests.xml
file in the current directory.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With