Tests & testing - HiStructClient/femcad-doc GitHub Wiki

The code we write is being subjected to changes. Some of them may spoil the result we want to obtain. To check this, FemCAD is capable of run automatic test that prove whether the result has been affected or not at any time of the development.

1. How does it work

The test itself is defined by some variable which is evaluated and compared to previously fixed (and expected to be correct) result. The value we evaluate is basically integer, double or array (or array of arrays of arrays ...). Resulting message is how many test failed and how many were successful. The user is then responsible for checking the differences manually and apply correction.

2. Common fcs test class