I'm looking for a python project to use as example to copy the design of the unit test parts.
The project should have these features:
python test.py
I need that the project should use the same test convention for all the code contained. I saw the whole python project but the the various packages are tested with different conventions. For example the setuptools packages uses an ad hoc adaption of unittest library while the other packages doesn't.
I need that the project doesn't use a ad-hoc or a highly customized testing framework, because I want reuse its test architecture in my project.
If your package and test code are small and self contained, put the tests in with the package. If the tests are large or complex, or require reading/writing files, or significant sample data, put your tests outside the package.
Unit testing is a technique in which particular module is tested to check by developer himself whether there are any errors. The primary focus of unit testing is test an individual unit of system to analyze, detect, and fix the errors. Python provides the unittest module to test the unit of source code.
An example of a real-world scenario that could be covered by a unit test is a checking that your car door can be unlocked, where you test that the door is unlocked using your car key, but it is not unlocked using your house key, garage door remote, or your neighbour's (who happen to have the same car as you) key.
Maybe Nose itself?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With