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

Print all test case error messages together at the end #745

Merged
merged 11 commits into from
Nov 30, 2024

Conversation

wilfonba
Copy link
Contributor

@wilfonba wilfonba commented Nov 24, 2024

Description

I have recently found the behavior described in #744 to be annoying. This PR addresses that by keeping a list of all failed tests and printing the errors all together at the end.

Fixes #744

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Scope

  • This PR comprises a set of related changes with a common goal

How Has This Been Tested?

Test 1: I intentionally caused tests to fail due to tolerance by commenting out dvd(0) in the fifth order WENO reconstruction so the solution would be wrong. The resulting output of ./mfc.sh test -j 1 -o bc=-1 > test1.txt (without coloring) is
test1.txt

Test 2: Intentionally caused tests to fail due to NaNs by commenting out beta(0) in the fifth-order WENO reconstruction. The resulting output of ./mfc.sh test -j 1 -o bc=-1 > test2.txt (without color) is
test2.txt

Test 3: Intentionally caused tolerance errors in the WENO routine and skipped some tests. The result of running ./mfc.sh test -j 8 -o 1D -% 80 > test4.txt (without color) is
test4.txt

Copy link

codecov bot commented Nov 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.63%. Comparing base (a3d39df) to head (ab90416).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #745   +/-   ##
=======================================
  Coverage   43.63%   43.63%           
=======================================
  Files          61       61           
  Lines       16893    16893           
  Branches     1948     1948           
=======================================
  Hits         7372     7372           
  Misses       8404     8404           
  Partials     1117     1117           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@sbryngelson sbryngelson left a comment

Choose a reason for hiding this comment

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

@henryleberre might comment on the 'cleanness' of the toolchain implementation. For me, it seems reasonable and gets the job done.

@sbryngelson
Copy link
Member

Is this in conflict with something added by @henryleberre in #737 ?

@wilfonba
Copy link
Contributor Author

Merged without issue

@sbryngelson
Copy link
Member

@wilfonba #737 is still open (not merged)

@wilfonba
Copy link
Contributor Author

wilfonba commented Nov 27, 2024

@wilfonba #737 is still open (not merged)

Oh. Yeah, it probably does conflict in some way with those changes, although minor. This can wait for #737 to be closed. I can't imagine much else causing conflicts once merged.

@sbryngelson sbryngelson enabled auto-merge (squash) November 30, 2024 08:08
@sbryngelson sbryngelson disabled auto-merge November 30, 2024 08:08
@sbryngelson sbryngelson merged commit d1b8028 into MFlowCode:master Nov 30, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

When tests fail, it is hard to tell which test it was
2 participants