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

Just for test: Improve unit test printout #114

Closed

Conversation

erikbosch
Copy link
Contributor

Give printout in log even if test fails

@erikbosch erikbosch force-pushed the erik_log branch 2 times, most recently from c06e43b to 915c535 Compare September 3, 2024 11:05
@erikbosch erikbosch changed the title Improve unit test printout Just for test: Improve unit test printout Sep 3, 2024
@@ -20,5 +20,5 @@

TEST(SampleAppTest, skeleton_test) {
// TODO: Fill me
EXPECT_TRUE(true);
EXPECT_TRUE(false);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikehaller - ith the change in this PR you can the output below



Run set -o pipefail
Running main() from /__w/vehicle-app-cpp-template/vehicle-app-cpp-template/build/_deps/googletest-src/googletest/src/gtest_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from SampleAppTest
[ RUN      ] SampleAppTest.skeleton_test
/__w/vehicle-app-cpp-template/vehicle-app-cpp-template/app/tests/utests/SampleApp_test.cpp:23: Failure
Value of: false
  Actual: false
Expected: true
[  FAILED  ] SampleAppTest.skeleton_test (0 ms)
[----------] 1 test from SampleAppTest (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SampleAppTest.skeleton_test

 1 FAILED TEST

@erikbosch
Copy link
Contributor Author

Indirectly updated now, closing this

@erikbosch erikbosch closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant