-
Notifications
You must be signed in to change notification settings - Fork 3
Skip database-dependent tests when test database is empty #309
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
Conversation
…ssages Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
…plTest Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
…udies' Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
|
@copilot there are more failures of the same type: |
…plTest Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
…ery range Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
... I've added database empty checks to all the failing tests you mentioned: SearchResultsTest (7 tests):
PhyloTreeServiceImplTest (1 test):
PhyloTreeTest.testUpdateNewickString: Already has skip check for empty User data (commit 243aeb6). The "Study deletion failed" error occurs during test cleanup, not due to empty database. Commits: d459e02, 1b31713, b7a5541 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Fifteen unit tests were failing with AssertionFailedError when run against an empty test database. These tests now detect empty data conditions and skip gracefully with informational log messages.
Changes
testFindBySubstring,testFindStudies, andtestTaxonLabelLengthSortingtestUpdateNewickStringtestFindSomethingByRangeExpressiontestFindStudiesByTaxonandtestFindTreesByTaxontestTrivial,testSearchService,testQuickCheck,testConvertToMatrices,testConvertFromMatrices,testConvertToTrees, andtestConvertFromTrees. Also removed assertion ingetTestData()helper method that prevented tests from running when database is empty.testFindSomethingByRangeExpression. Also fixed bug where assertion range (37..100) didn't match query range (37..40).Implementation
Follows existing skip pattern from
testFindMatricesByTaxonVariantandtestBuildNewickStringPerf:Checks use
isEmpty()for collections and null checks for single objects, consistent with codebase conventions.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.