Size: 220
Comment:
|
Size: 1077
Comment: Ian Bicking inspired discussion
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Check out coverage.py, at http://www.garethrees.org. This module runs your code, then produces a report on how many statements were executed, and which ones were not. Use it to ensure your unit tests test everything. | == Software == * UnitTest in the standard library (http://www.python.org/doc/current/lib/module-unittest.html) * PyUnit at http://pyunit.sourceforge.net * [http://www.garethrees.org/2001/12/04/python-coverage/ StatementCoverage] This module runs your code, then produces a report on how many statements were executed, and which ones were not. Use it to ensure your unit tests test everything. * DataTest at http://formencode.org/docs/DataTest/README.html == Best Practices == == Discussion == Sprouted out by http://formencode.org/docs/DataTest/TODO.html. What I need is a layered test system like * test suit * with fast/normal/detailed mode * with known failing tests excluded * test package to group related tests with preset parameters * individual test * with options like log details * with ability to flex parameters, extend options etc. * test utilities * fuzzy difference * different logging/reporting/visualization helpers * with output capture capability -- MikeRovner [[DateTime(2004-02-27T19:25:32Z)]] |
Software
UnitTest in the standard library (http://www.python.org/doc/current/lib/module-unittest.html)
[http://www.garethrees.org/2001/12/04/python-coverage/ StatementCoverage] This module runs your code, then produces a report on how many statements were executed, and which ones were not. Use it to ensure your unit tests test everything.
Best Practices
Discussion
Sprouted out by http://formencode.org/docs/DataTest/TODO.html.
What I need is a layered test system like
- test suit
- with fast/normal/detailed mode
- with known failing tests excluded
- test package to group related tests with preset parameters
- individual test
- with options like log details
- with ability to flex parameters, extend options etc.
- test utilities
- fuzzy difference
- different logging/reporting/visualization helpers
- with output capture capability