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

Check manual examples for all chapters even if one fails #1183

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

olexandr-konovalov
Copy link
Member

Closes #1138

@olexandr-konovalov
Copy link
Member Author

At the moment, PR #1135 is good to check this after it will be merged.

@codecov
Copy link

codecov bot commented Mar 12, 2017

Codecov Report

Merging #1183 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1183   +/-   ##
=======================================
  Coverage    68.4%    68.4%           
=======================================
  Files         435      435           
  Lines      230677   230677           
=======================================
  Hits       157797   157797           
  Misses      72880    72880

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 4c8a851...8cd17b5. Read the comment docs.

@olexandr-konovalov olexandr-konovalov force-pushed the better-man-test branch 13 times, most recently from 26d9cdf to e98c30e Compare March 12, 2017 22:42
@olexandr-konovalov olexandr-konovalov added gapdays2017-spring Issues and PRs that arose at https://www.gapdays.de/gapdays2017-spring topic: tests issues or PRs related to tests labels Mar 12, 2017
@olexandr-konovalov
Copy link
Member Author

This PR has been tested with some artificial failures (two broken examples in two chapters) and in this case it worked as intended. It should be ready to merge as soon as the current CI tests will finish.

@olexandr-konovalov
Copy link
Member Author

Puzzling where the -0.02% reduction of coverage comes from...

etc/ci.sh Outdated
TestManualChapter("$ch");
QUIT_GAP(0);
GAPInput
TestManualChapter $ch
Copy link
Member

Choose a reason for hiding this comment

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

A simpler way to implement this (which possibly avoids the need of creating TestManualChapter), using the || operator:

bin/gap.sh -q -L testmanuals.wsp --cover $COVDIR/$(basename $ch).coverage <<GAPInput || TESTMANUALSPASS=no
...

Or of course also

echo "TestManualChapter(\"$1\"); QUIT_GAP(0);" | bin/gap.sh ... || TESTMANUALSPASS=no

@olexandr-konovalov
Copy link
Member Author

olexandr-konovalov commented Mar 14, 2017

@fingolfin Thanks for the tip - I've updated the PR and run CI tests twice - with and without errors. This is ready for merge now.

Also, now it shows zero coverage changes, as expected.

@fingolfin fingolfin merged commit 56cbd95 into gap-system:master Mar 15, 2017
@olexandr-konovalov olexandr-konovalov deleted the better-man-test branch August 5, 2017 17:23
@wilfwilson wilfwilson added the release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes label Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapdays2017-spring Issues and PRs that arose at https://www.gapdays.de/gapdays2017-spring release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: tests issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants