Skip to content
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

List all errors in each database test before failing #1550

Closed
wants to merge 1 commit into from

Conversation

mjohnson541
Copy link
Contributor

@mjohnson541 mjohnson541 commented Feb 8, 2019

Since the database tests take a while to run this makes it much easier to debug database related issues.

Check that each test is unlikely to give a false pass and run the database tests to ensure there aren't any false fails.

Fixes #1549

@codecov
Copy link

codecov bot commented Feb 8, 2019

Codecov Report

Merging #1550 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1550      +/-   ##
==========================================
+ Coverage   41.84%   41.86%   +0.01%     
==========================================
  Files         165      165              
  Lines       28010    28010              
  Branches     5714     5714              
==========================================
+ Hits        11721    11726       +5     
+ Misses      15500    15496       -4     
+ Partials      789      788       -1
Impacted Files Coverage Δ
rmgpy/data/kinetics/family.py 58.56% <0%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87ed3a5...e8b5646. Read the comment docs.

@mjohnson541 mjohnson541 self-assigned this Feb 16, 2019

boo = False
for item in tst:
if item[0] != item[1]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all of these tests, my initial thought is that the check should occur when you're iterating through the entries, and you should just store a list of error messages that need to be printed. Then at the end (here), if the list is not empty, log all of the stored messages and fail the test.

It seems cleaner that way. Let me know what you think.

@rwest
Copy link
Member

rwest commented Apr 26, 2019

Just a note that this commit may have made its way into master via the rmg-cat merge, as it had previously been cherry-picked onto the cat branch.

0eb061b

@mliu49
Copy link
Contributor

mliu49 commented Apr 26, 2019

Closing because this was merged into master with #1537.

@mliu49 mliu49 closed this Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

databaseTest could collect all errors instead of reporting just the first
3 participants