An object-oriented API to test doctests while unittest runs.
Project description
An object-oriented API to test doctests while unittest runs.
It is different from the Pyhton 2.4 doctest unittest API because:
Provides unittest loaders to load test cases out of doctests. Other loaders allow users to extract TestCase instances out of TestCase descendants and doctests (and any other format) in a single step.
Test analysis require no further parsing because unittest TestResult instances report whether individual examples have been successfully executed, or otherwise have failed or raised an unexpected exception. Formerly TestResult objects contained the whole report outputted by doctest module.
Adds object orientation and eliminates functions with big signatures.
Allows to parameterize the doctest run via doctest options, like before…
A fuller explanation can be found in the following article:
O. Lang “Doctest and unittest… now they’ll live happily together” (2008) The Python Papers, Volume 3, Issue 1, pp. 31:51
- Note: The contents of this module were first implemented by the module
oop.utils.testing in the PyOOP package.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dutest-0.1.0.zip
.
File metadata
- Download URL: dutest-0.1.0.zip
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb837a608667c10b89c982ff83a63a4b484454baf75f7776875d716a766dcb52 |
|
MD5 | 91383c32f7f71590e2c006b0d13b770c |
|
BLAKE2b-256 | 0a3175df71fa420f7bd9b269150fa38c5bf0d7e7907c86e71a549ecf81cfc3ac |