question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit testing software: nose, nose2, pytest

See original GitHub issue

This 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 to nose. 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
goerzcommented, May 2, 2019

I’ve found pytest to be extremely nice to work with. One advantage is that pytest will also pick up and run nose tests, so there is no need to rewrite all of the existing tests. At the same time, new tests will be easier to write, as pytest has much less boilerplate code than nose.

1reaction
ajgpitchcommented, Mar 5, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found