-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Chado Prepare works in automated testing #297
Conversation
…table record doesn't yet exist.
…tripal/t4d8 into tv4g1-issue291-testChadoPrepare
Bringing both prepare testing branches together
…tripal/t4d8 into tv4g1-issue291-testChadoPrepare
compiling pepare changes
…tripal/t4d8 into tv4g1-issue291-testChadoPrepare
I believe the tests should now pass and that this PR successfully adds an efficient way to get a prepared chado for testing and fixes all the bugs which stopped the official prepare task from running in the testing environment. To create a prepared chado test instance you do the following:
Note: this is different then we originally discussed as it became clear we did not want to add records to an existing chado test db due to too many unexpected issues. This approach is more reliable and just as fast. The only downside is that ChadoTestBrowserBase creates an empty chado that we do not use when this approach is taken which is a bit more overhead then needed. We also need to add documentation for automated testing in the Tripal/Chado environment. I've added an issue with some details here: tripal/tripal_doc#13 |
Code Climate has analyzed commit 0e6211a and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 73.3% (50% is the threshold). This pull request will bring the total coverage in the repository to 33.2% (12.8% change). View more on Code Climate. |
Confirmed that since this is well tested, has been up for more then 3 days it can be merged 🎉 This will be used a lot in future testing so if there are any bugs -they will be found :-) |
This PR adds
Testing
Manual
Automated testing
$prepared_chado = $this->getTestSchema(ChadoTestBrowserBase::PREPARE_TEST_CHADO);
provides a new test chado instance without error.Documentation
There has been a documentation issue opened tripal/tripal_doc#13
Also, to get a chado instance prepared for testing use the following command in any test which extends ChadoBrowserTestBase:
Warning
Previous versions of this PR had a prepareTestChado() method WHICH HAS BEEN REMOVED. Please use the new approach instead.