LArbys / LArCV

Liquid Argon Computer Vision
11 stars 9 forks source link

Unit test! #51

Open drinkingkazu opened 8 years ago

drinkingkazu commented 8 years ago

We need unit test. period.

This is true for any package under core or app.

) core/Base ) core/DataFormat ) core/PyUtil ) core/CPPUtil *) core/CVUtil

) app/ImageMod ) app/ImageAna

... might be a good start imho. I pushed a unit test for IOManager here: https://github.com/LArbys/LArCV/blob/develop/core/DataFormat/test/iotest.py

By default it sends no text to stdout nor stderr of the terminal but just return codes.

python iotest.py echo $? 0

Three different error return codes are defined in the script. One can run verbose mode by providing "debug" or "info" as an argument of the script to change message level.