susilehtola / OpenOrbitalOptimizer

Open Orbital Optimizer
7 stars 2 forks source link

Implement proper tests #5

Open susilehtola opened 7 months ago

susilehtola commented 7 months ago

There are no tests for now, but they should be implemented.

Basic tests:

loriab commented 5 months ago

6 adds testing setup in the EFV model where one test builds atomtest exe and further tests execute it w/different args. you could expand that and add catch2 so it's actually checking numbers. Or you might be able to check for Converged to energy with something like the below.

set_tests_properties(smoke_test PROPERTIES
        PASS_REGULAR_EXPRESSION "^Hello, World!"
)