-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use Pass info in v1.7 and later #83
Conversation
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
- Coverage 96.92% 91.84% -5.08%
==========================================
Files 7 7
Lines 520 552 +32
==========================================
+ Hits 504 507 +3
- Misses 16 45 +29
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Just needs updating docs. |
@oxinabox ping. Would love to have it for our repo. |
src/to_xml.jl
Outdated
@@ -199,7 +199,8 @@ function to_xml(ts::AbstractTestSet) | |||
set_attribute!(x_testcase, "classname", ts.description) | |||
set_attribute!(x_testcase, "time", time_taken(result)::Millisecond) | |||
# Set attributes which require variables in this scope | |||
(result isa Pass || result isa ReportingResult{Pass}) && set_attribute!(x_testcase, "name", x_testcase["name"] * " (Test $total_ntests)") | |||
ntests > 0 && set_attribute!(x_testcase, "id", total_ntests) # Ignore both testsuites and errors outside of tests | |||
(result isa Pass || result isa ReportingResult{Pass}) && VERSION < v"1.7.0" && set_attribute!(x_testcase, "name", x_testcase["name"] * " (Test $total_ntests)") |
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.
Should we introduce a ispass(result)
function that covers both these?
I think the original expression is the best thing to use for
testname
, and thought we may as well keep using the count in theid
field as this also closes #62.Closes #77
EDIT: okay it ended up being a bit more of a change, and it changes test case
ID
s andname
s so I have made it a breaking change. Now all passes, failures and errors (except for errors outside of tests) have theid
set to a number which increments per testset. ForPass
es, thename
is the original test expression forv1.7.0
and above; andpass (info lost) (Test 1)
is the name belowv.1.7.0
.