Unittest vs pytest vs nose

I am new to python testing and I have some difficulties choosing between unittest, pytest and nose. I am compiling a test library that requires: installing a package that modifies restarts and restarting files on Linux. Which framewok test will be the best between the three tracks?

At the end of the test, I would really like to: n test n test n test failed

Can you provide some advice?

amuses

+5
source share
1 answer

This is a very broad question with a lot of resources available. Nevertheless, I will recommend py.test, because getting started is very simple, despite the full set of tools. Before starting Nose, a little more configuration is required than py.test. Unittest is similar to junit in java, which is a good start. Anyway, I recommend py.test.

+6
source

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


All Articles