wiki:DevelopmentPage/CodeTesting

Version 2 (modified by Valentin Hirschi, 12 years ago) ( diff )

--

IOTests

The category of IOTests consists in systematically comparing a number of reference files (typically generated in previous stable versions) against the ones generated by the tested revision. These are very important as it is the only way to make absolutely sure that no border effects have been introduced. The drawback then being that they are overly sensitive and can become time consuming to update as the code evolve. Also, these tests are very inelegant if performed naively by hardcoding the reference content in the python code itself.

This is why MadGraph5 proposes an efficient way of handling these tests by proposing a managing system fully incorporated in the test_manager.py script. Also, as structure is proposed to ease new implementation of such tests by making them inherit from the generic class IOTest.

What to do if they fail? Managing the existing IOTests

Cry

Unit tests

Parallel tests

Acceptance tests

Note: See TracWiki for help on using the wiki.