Changes between Version 3 and Version 4 of TestingGuidelines
- Timestamp:
- 12/23/06 06:18:07 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TestingGuidelines
v3 v4 1 1 '''CAUTION: This page is in the process of being migrated from an older page. Until this process is completed, information found here may be incorrect.''' 2 2 = Testing Guidelines = 3 SciPy's testing structure is based on the unit testing framework offered by unittest.py. scipy_test.py also provides a few helper functions. 3 [[PageOutline]] 4 SciPy's testing structure relies on the [http://projects.scipy.org/scipy/numpy/browser/trunk/numpy/testing NumPy testing system], which is based on the unit testing framework offered by [http://docs.python.org/lib/module-unittest.html unittest.py]. 4 5 5 6 Our goal is that every module and package in SciPy includes a thorough set of unit tests. These tests should exercise the functionality of a routine as well as its robustness to erroneous or unexpected input arguments. The best time to write the tests is when the module itself is being written. Whenever a new bug is found in a routine, a unit test should be written to test for the error so that it can't creep back in unnoticed after future code changes.
