Python-based Unit Testing Framework
Jump to navigation
Jump to search
An Python-based Unit Testing Framework is an unit testing framework for Python code.
- Example(s):
- Counter-Example(s):
- a Java-based Unit Testing Framework, such as: JUnit, or Mockito.
- See: Unit Testing, Unit Test, Test Automation Framework, Unit Testing Framework.
References
2018
- (Wikipedia, 2018) ⇒ https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#python Retrieved:2018-12-12.
Name | xUnit | Generators | Fixtures | Group Fixtures | Source | Remarks |
---|---|---|---|---|---|---|
Autotest | Yes | Yes | [1] | Used for Linux kernel testing | ||
unittest | Yes | Yes | Yes | No | (sometimes referred to as “PyUnit"), has been included in Python standard library from Python version 2.1.[2] | |
XPyUnit | adding XML report generation to PyUnit | |||||
TestOOB | an extended test framework for PyUnit | |||||
Doctest | easy, Pythonic, and part of Python's standard library | |||||
Nose | Yes | Yes | Yes | [3] | a discovery-based unittest extension | |
pytest | Yes | Yes | Yes | Yes | [4] | Distributed testing tool. Can output to multiple formats, like the TAP format, JUnit XML or SubUnit. |
TwistedTrial | Yes | Yes | Yes | No | [5] | PyUnit extensions for asynchronous and event-driven code |
Should DSL | Yes | Yes | Yes | Yes | [6] | Distributed testing tool |
Green | Yes | Yes | Yes | No | [7] | Python test runner. |
- ↑ "Autotest - Fully automated testing under linux". https://autotest.github.io/.
- ↑ "25.3. unittest – Unit testing framework – Python 2.7.10 documentation". python.org. https://docs.python.org/2/library/unittest.html. Retrieved 23 June 2015.
- ↑ "Note to Users – nose 1.3.7 documentation". https://nose.readthedocs.io/en/latest/. Retrieved 29 December 2016.
- ↑ "pytest: helps you write better programs". pytest.org. http://pytest.org/. Retrieved 23 June 2015.
- ↑ "TwistedTrial – Twisted". Twistedmatrix.com. http://twistedmatrix.com/trac/wiki/TwistedTrial. Retrieved 2012-11-12.
- ↑ "Should-DSL documentation". should-dsl.info. http://www.should-dsl.info/. Retrieved 23 June 2015.
- ↑ "Green is a clean, colorful, fast python test runner.". https://github.com/CleanCut/green. Retrieved 28 April 2017.