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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

wilfonba
Copy link
Collaborator

@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 42.97%. Comparing base (e362dc9) to head (aeeb29a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #745   +/-   ##
=======================================
  Coverage   42.97%   42.97%           
=======================================
  Files          61       61           
  Lines       16492    16492           
  Branches     1890     1890           
=======================================
  Hits         7087     7087           
  Misses       8356     8356           
  Partials     1049     1049           

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


🚨 Try these New Features:

test4.txt Outdated Show resolved Hide resolved
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.

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