-
Notifications
You must be signed in to change notification settings - Fork 175
TestDirectory reports number of failures and failed files #2899
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
f65d7e9 to
1fa955d
Compare
|
This will be useful @fingolfin - let's see how this will be seen in Travis. |
1fa955d to
39c6d51
Compare
Codecov Report
@@ Coverage Diff @@
## master #2899 +/- ##
==========================================
- Coverage 83.74% 83.74% -0.01%
==========================================
Files 680 680
Lines 346265 346280 +15
==========================================
+ Hits 289971 289979 +8
- Misses 56294 56301 +7
|
|
@fingolfin The problem with building manuals is not present in the master branch. Please rebase. |
|
What problem are you talking about? Travis and AppVeyor passed now. Also, what do you mean with "please rebase" -- this is already based on 94e61ab, the current master branch. |
|
(There simply was a stupid XML error in the GAPDoc, which is fixed now) |
|
I've been looking at the earlier test of this PR on Travis - that happened at https://travis-ci.org/gap-system/gap/builds/437551821. Indeed, fine now. Seen XML error in two separate PRs but not in the master branch, hence suggested to rebase... |
|
Ah I see: was confused because I saw your earlier comment pointing out broken XML; but after fixing that, the comment was gone?! Anyway, tests pass now. |
olexandr-konovalov
left a comment
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 @fingolfin - the code+docs look good, and I've fetched the PR and tested locally with both outcomes:
total 81576 ms (24411 ms GC) and 9.39GB allocated, 10 failures in 2 of
220 files
and
total 78906 ms (23648 ms GC) and 9.34GB allocated, 0 failures in 0 of
220 files
- the
totalline becomes longer, maybe print theX failures in Y of Z filesfrom a new line? - maybe
0 failures in 220 filesrather than0 failures in 0 of 220 files?
With this, you may get output like this, with the
relevant change in the "total" line near the end.
gap> TestDirectory("misc");
Architecture: x86_64-apple-darwin15.6.0-default64-kv5
testing: misc/err.tst
0 ms (0 ms GC) and 46.6KB allocated for err.tst
testing: misc/foo.tst
########> Diff in misc/foo.tst:3
# Input is:
1+1;
# Expected output:
3
# But found:
2
########
0 ms (0 ms GC) and 6.62KB allocated for foo.tst
-----------------------------------
total 1 ms (0 ms GC) and 53.8KB allocated
1 failures in 1 of 2 files
#I Errors detected while testing
false
gap>
Resolves gap-system#2861
39c6d51 to
93a24ad
Compare
|
@alex-konovalov Done. One could next argue that |
|
@fingolfin should this be backported to stable-4.10? |
|
I don't see why. |
|
Because it's useful and should not break things... Or, actually, because I don't want to maintain two different versions of scripts for jenkins which look up for the line with the word |
|
I don't find the first argument compelling, but the final one kinda is ;-) |
|
Backported via 9179000 |
With this, you may get output like this, with the
relevant change in the "total" line near the end.
Resolves #2861