Simple VIVO Test Cases
Simple VIVO can be tested using test_sv.py in the tests directory. Various tests are performed and test results
reported along with timings of each test.
Running the Tests
To run the tests, open a terminal window, navigate to the tests directory and use:
python test_sv.py
Test results will be displayed in your terminal window. Sample test output is shown below. Three items are displayed for each test:
- The name of the test.
config not foundis the name of a test that demonstrates Simple VIVO behaviour when the configuration file is not found. - The return code. Simple VIVO returns
0if no errors occured. Simple VIVO returns1if errors occurred. For theconfig not foundtest, the configuration file was not found. This is an error. Simple VIVO produces a return code of1. - The time in seconds to complete the test. Timings were done with a Simple VIVO and a VIVO Vagrant running on a MacBook.
config not found 1 0.112974
definition file not found 1 0.044921
help 0 0.052848
source file not found 1 0.114163
test 0 0.880568