Skip to content
testcode is a python module for testing for regression errors in numerical (principally scientific) software.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Print out skipped tests only at higher verbosity levels. Apr 6, 2015
lib/testcode2 Flush stdout at the end of each job. Dec 19, 2016
.gitignore Documentation (currently only for user interface). May 25, 2012
LICENSE License information: modified BSD. May 6, 2012
README.rst Add link to testcode BuildStep and fix formatting in README. Jun 4, 2013



testcode is a python module for testing for regression errors in numerical (principally scientific) software. Essentially testcode runs a set of calculations, and compares the output data to that generated by a previous calculation (which is regarded to be "correct"). It is designed to be lightweight and highly portable.

testcode can run a set of tests and check the calculated data is within a the desired tolerance of results contained in previous output (using an internal data extraction engine, a user-supplied data extraction program or a user-supplied verification program). The programs to be tested can be run in serial and in parallel and tests can be run in either locally or submitted to a compute cluster running a queueing system such as PBS. Previous tests can be compared and diffed against other tests or benchmarks.


Full documentation can be found in the docs/ subdirectory and in the appropriate docstrings. Documentation can be compiled using sphinx.

Documentation can also be viewed at readthedocs.


James Spencer, Imperial College London.

Contributions and suggestions from:

Keith Refson, Science and Technology Facilities Council.

Shawn Chin, Science and Technology Facilities Council.


Modified BSD license; see LICENSE for more details.

See also a custom buildbot BuildStep for running testcode by Shawn Chin.

You can’t perform that action at this time.