What are the best Python unit testing frameworks?

asked by Anonymous
19 contributors
4 solutions
  1. 7

    #1pytest

    pytest
    Pytest is a full-featured Python testing tool that helps the user and developer to write better programs. This framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
    Software

    Other Platform

    Free

    Paul Schneider
    Written on June 20, 2017
    "Pytest is a tool every programmer needs. Help write many apps and better programs with this testing tool. With the smallest of frameworks to apps and libraries, you will find this Python unit testing program a must have."
  2. 4

    #2unittest

    unittest

    Unittest is a unit testing framework that supports test automation, the setup and shutdown code for tests, the aggregation of tests into collections and many other features like, for example, the independence of the tests from the reporting framework, and providing classes to make it easier to support this features.



    Software

    Windows

    Free

    Dennis McCoy
    Written on September 15, 2017
    "Unittest is a good tool for Python developers. It's the standard testing framework in our office. Nobody has found a reason to abandon it, so we're sticking with it."
  3. 3

    #3Nose 2

    Nose 2
    Once nose has finished its developing Nose 2 is the unit testing framework for Python that continues the work left by Nose. Nose 2 improves nose and is based on the plugins branch of unittest2.
    Other

    Free

    Tina Zhang
    Written on September 15, 2017
    "I recently started programming in Python again and am glad there are now frameworks like Nose 2. It makes unit testing so much better than it used to be. Nose 2 makes it the perfect time to return to Python programming."
  1. 1

    #4nose

    nose
    Nose is a unit testing framework for python that extends the test loading and running features of unittest, making it easier to write, find and run tests.
    Software

    Windows

    Free

    Margaret Fernandez
    Written on May 4, 2017
    "While Nose is a good and reasonably simple unit testing framework, let's not forget that it also has discovery functions as well as execution functions. In other words, it has to be able to find your tests in order to run them. This can be a little tricky to set up if you haven't used it before, so if you're just looking for best unit testing frameworks, the setup issues might be seen as a complication. On the other hand, it has some very nice features, especially the plugin system, so I would say in general it's a good solution fo the experienced Python unit tester. "

Summary

Best What are the best Python unit testing frameworks
RankSolutionsTypeVotesPrice
1pytestSoftware 7 Free
2unittestSoftware 4 Free
3Nose 2Other 3 Free
4noseSoftware 1 Free
Close

This action requires you to be logged in

Quickly sign in with your social media account:

What interests you most? (Select at least 3)

This will help us to keep things fresh and relevant!

Close

Now that you’ve found a solution...

Why not join our community of sharp minds and pro-active posters?

Be part of a rewarding interactive knowledge exchange!
Close

Join These Inquisitive Minds

Engage, learn and share with a friendly community versed in a massive range of trending topics.