-
Notifications
You must be signed in to change notification settings - Fork 24
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
Coverage for failing tests #58
base: master
Are you sure you want to change the base?
Conversation
Sorry for messing with the tests. |
@tpapp Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, but I don't understand why some code was removed, please explain
@test !isnothing(match(table_header, table)) | ||
@test !isnothing(match(table_line, table)) | ||
@test !isnothing(match(table_footer, table)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not removed. It was moved up to line 42 and beyond.
The reason is, that for the new test case of a failing test in the dummy package no coverage is returned, but instead throws an error. Therefore all the tests using cov
cannot be processed, after the test has thrown.
So there is no change in the tests for the old ones, but an adaption for the test of the new feature.
|
||
@info "Printing coverage information for visual debugging" | ||
show(stdout, cov) | ||
show(IOContext(stdout, :print_gaps => true), cov) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before.
Thanks for the review. Added a clarification comment to your question |
Co-authored-by: Tamas K. Papp <tkpapp@gmail.com>
Short reminder |
Thanks, I appreciate the reminder. The code now looks good to me. I am wondering if proceeding in case of an error is always desirable. Would an argument that controls this for Can you please add a section (eg |
Adds a safety measure to still process .cov files even when tests are failing.
Closes #57