Python-based Unit Testing Framework: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Text replacement - " "[[" to " “[[") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
An [[Python-based Unit Testing Framework]] is an [[ | An [[Python-based Unit Testing Framework]] is an [[unit testing framework]] for [[Python code]]. | ||
* <B>Example(s):</B> | * <B>Example(s):</B> | ||
** [[unittest]]. | ** [[unittest]], [[unittest2]]. | ||
** [[pytest]]. | |||
** … | |||
* <B>Counter-Example(s):</B> | * <B>Counter-Example(s):</B> | ||
** a [[Java-based Unit Testing Framework]] | ** a [[Java-based Unit Testing Framework]], such as: [[JUnit]], or [[Mockito]]. | ||
* <B>See:</B> [[Unit Testing]], [[Unit Test]], [[Test Automation Framework]], [[Unit Testing Framework]]. | * <B>See:</B> [[Unit Testing]], [[Unit Test]], [[Test Automation Framework]], [[Unit Testing Framework]]. | ||
---- | ---- | ||
---- | ---- | ||
Line 18: | Line 21: | ||
| Autotest || {{Yes}} || || {{Yes}} || ||<ref>{{cite web | url=https://autotest.github.io/ | title=Autotest - Fully automated testing under linux}}</ref> || Used for Linux kernel testing | | Autotest || {{Yes}} || || {{Yes}} || ||<ref>{{cite web | url=https://autotest.github.io/ | title=Autotest - Fully automated testing under linux}}</ref> || Used for Linux kernel testing | ||
|- | |- | ||
| unittest || {{Yes}} || {{Yes}} || {{Yes}} || {{No}} || || (sometimes referred to as | | unittest || {{Yes}} || {{Yes}} || {{Yes}} || {{No}} || || (sometimes referred to as “[[PyUnit]]"), has been included in Python standard library from Python version 2.1.<ref>{{cite web|url=https://docs.python.org/2/library/unittest.html|title=25.3. unittest – Unit testing framework – Python 2.7.10 documentation|work=python.org|accessdate=23 June 2015}}</ref> | ||
|- | |- | ||
| XPyUnit || || || || || || adding [[XML]] report generation to [[PyUnit]] | | XPyUnit || || || || || || adding [[XML]] report generation to [[PyUnit]] | ||
Line 37: | Line 40: | ||
|} | |} | ||
---- | |||
__NOTOC__ | |||
[[Category:Concept]] | [[Category:Concept]] | ||
Latest revision as of 19:21, 5 July 2023
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.