Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

run_tests without compiler output? #490

Closed
HWiese1980 opened this issue Oct 19, 2017 · 2 comments
Closed

run_tests without compiler output? #490

HWiese1980 opened this issue Oct 19, 2017 · 2 comments

Comments

@HWiese1980
Copy link

I'm trying to make catkin run my unit tests. It works but there's a lot of output from catkin_make that I don't need. The default alias for catkin run_tests contains the --verbose parameter for catkin build which appears to be necessary in order to get the test result output. But it also outputs all those compiler and linker info stuff that I don't need.

Is there a way to get only the run_tests output (see below) while suppressing the make output?

-- run_tests.py: execute commands
  /home/.../test --gtest_output=xml:/home/.../gtest-test.xml
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from TestSuite
[ RUN      ] TestSuite.testCase1
/home/.../test/utest.cpp:5: Failure
Failed
[  FAILED  ] TestSuite.testCase1 (0 ms)
[----------] 1 test from TestSuite (0 ms total)

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

 1 FAILED TEST
@wjwwood
Copy link
Member

wjwwood commented Oct 19, 2017

Perhaps a duplicate of #405?

(closing assuming that is so, can reopen if needed)

@wjwwood wjwwood closed this as completed Oct 19, 2017
@HWiese1980
Copy link
Author

Yepp, duplicate. Thanks for the link!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants