Tsjerk / Insane

INSert membrANE - A simple, versatile tool for building coarse-grained simulation systems
GNU General Public License v2.0
39 stars 24 forks source link

Even better tests #35

Closed jbarnoud closed 7 years ago

jbarnoud commented 7 years ago

The regression tests call insane.cli.main function rather than the insane program. This makes tests faster, and it makes reporting test coverage possible.

The old way is still there but is not discoverable by nose. I need to find a way to make it possible to toggle between running the insane program or the insane's main function. I may also just strip the old way completely. The new method offers more flexibility but does not test the actual entry point created by pip.

In addition, the top files are now compared to the reference when relevant.

Finally, accessory functions move in test/utils.py.