-
Notifications
You must be signed in to change notification settings - Fork 52
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
with CppUTest: ApprovalMismatchException
suppresses other tests output
#203
Comments
Things we found when experimenting with this today:
I wonder if this long discussion on a merged CppUTest PR provides any hints on how to work around this: cpputest/cpputest#1550 |
Yes, it did. Adding either of these two command-line arguments when running the tests makes both test failures be shown:
Confirmed with this change: git diff
diff --git a/Makefile b/Makefile
index 86536c0..fd89508 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ clean :
git clean -fx
test: ExampleTestAndApprovalTest
- ./ExampleTestAndApprovalTest
+ ./ExampleTestAndApprovalTest -e
exampleonly: OnlyExampleTest
./OnlyExampleTest The console output is then:
|
We should probably add this to the documentation on the Approval Tests/CppUTest integration. |
super! thanks so much for taking the time! |
see example here
the example shows a test file that has two failing tests - one of them is using approvals, the other is a non-approvals test.
expected
both failures should be shown
actual
the non-approvals test output is not seen in the terminal
The text was updated successfully, but these errors were encountered: