Tests
There is a suite of test to verify the accuracy of the code during debugging. We use pytest to automatize that. See pytest web site for further informations.
To run all tests
in Windows powershell, run the following command
digital_twin.bat test
To add a test case
- add an YAML input file to run the specific test case. Plese use the following naming convention for ease:
testXXX_keyword.yaml
with, XXX = a number using 00 if necessary (example 1 would be 001), keyword = hint on test
- add the expected test results in a YAML file located in the reference folder. CAUTION - the name of the test result file shall be exactly the same as the name of the YAML input file
Test decriptions
- Test 001 - Aero: constant speed 27 km/h (7.5 m/s) on 3000 m.