Unit testing software: nose, nose2, pytest
See original GitHub issueThis is post for discussion over whether it might be beneficial to switch from nose
to another unit testing software.
-
QuTiP is using nose for unit testing. A disclaimer on that project homepage warns that nose might not be maintained in the future.
-
nose2
is the successor tonose
. It is actively maintained. There are some differences. -
pytest is another open-source solution. By comparing nose2 and pytest activity it seems that the latter has grown and is actively updated.
I wonder whether it would make sense to migrate to a more popular (possibly more robust?) software and how much work this would mean. Other implications are not clear to me at this moment.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Welcome to nose2 — nose2 0.12.0 documentation
pytest is an excellent test framework and we encourage users to consider it for new projects. It has a bigger team of maintainers...
Read more >Getting Started With Nose2 in Python [Tutorial] - LambdaTest
Nose2 is a popular test runner in Python that can detect the unit tests in your project and execute them. If you are...
Read more >Nose vs pytest comparison of testing frameworks - Knapsack Pro
Nose is a Python unit test framework. This is a Python unit test framework that intergrates well with doctests, unnittests, and 'no-boilerplate tests',...
Read more >Unit testing with pytest and nose
Unit testing is widely a used technique for verifying software implementation. The idea is to identify small units of code and test each ......
Read more >Nose2 - Coding Ninjas CodeStudio
Nose2 Python is based on unit tests and extends the framework's ... Python Nose tutorial, you must first install the Nose2 framework (if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve found
pytest
to be extremely nice to work with. One advantage is thatpytest
will also pick up and runnose
tests, so there is no need to rewrite all of the existing tests. At the same time, new tests will be easier to write, aspytest
has much less boilerplate code thannose
.I think we should swap, but I don’t think it’s necassarily high priority.
My reckoning is that nose2 could be easier to switch to than pytest. I don’t think that anything we do is particularly special. It might be a case of suck it and see.