Closed timronan closed 4 years ago
Travis CI uses different data to test than are included in the Github directory /PH5/ph5/test_data. All data sources need to be consistent so we can write test cases that work both in the integration pipeline and on local machines. We have to have a consistent testing suit to make it valuable. Travis CI Test Result when local test pass
Local test result when Travis CI test pass
Please don't post screen grabs of text.
I think you need to run create_ph5.sh
before running tests
Noted on both accounts. You are correct on running the 'create_ph5.sh' script. We should consider updating the CONTRIBUTING.md document to reflect this. Currently, CONTRIBUTING.md states:
Create a unit test(s) for your contribution and make sure it passes. If a test module doesn't already exist for the module you are updating, create one in the appropriate test package following the test_
file-name pattern and then update the PH5/runtests.py script.
This should say something about the 'create_ph5.sh' script. Something similar to the sentence below could be added.
To verify the test suit passes execute
create_ph5.sh
thenruntests.py
.
Another option could be to make create_ph5.sh
automatically execute when executing runtests.py
. This will make the test suite more robust and prevent users from assuming test are failing. Especially since the majority of the test pass if create_ph5.sh
is not executed.
Describe the bug When running runtests.py there are multiple failed test. Making the PH5 test suite unreliable.
Environment (please complete the following information):
To Reproduce Set up ph5 enviroment. Run
./runtest.py
Expected behavior All test should pass so new code can be incorporated.
Screenshots