Boost Test integration - hide passed tests

已回答

Dear communauts,

I would like to ask the way, if there is one, to setup CLion Boost Test runner to completely hide output from passed tests.
I have seen that the command running tests is:

<test_exe> --run_test=<test_Name> --logger=HRF,all --report_format=HRF --show_progress=no

I think I have to edit the "--logger=HRF,all" option and remove "all".

Thank you in advance

Gabriele

2
Avatar
Permanently deleted user

Up

0

Hi, @Gfronze!

Sorry for the late response. Could you please specify why hiding the passed tests is so important for you?

Unfortunately, removing "all" from "--logger=HRF,all" will complicate navigation to the fallen test.

0
Avatar
Permanently deleted user

Dear Anna,

It is important to me to highlight the failed tests only. When you have something like 200+ tests per class/executable it shall be a kind addition to have the possibility to get a simple "everything ok" message if everything runs fine.
A the same time if you manage to just have the failed tests output the tests become a check-list, particularly useful in test-based development to use the tests themselves as a roadmap to follow.
Is there any possibility to expose the command line used to run the tests to make the users able to modify it?
Thank you!

Gabriele

0

Gabriele, thank you for the detailed response. For now you can disable the "Show Passed" option in Test Runner Tab in order not to show tests that passed successfully. If that's not enough, feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/CPP.

Btw also there is the "Rerun failed tests" button which runs only test failed/crashed after last run, it can be useful too.

 

0
Avatar
Permanently deleted user

Dear Anna,

This is not really what I wanted to see.

Rather than hiding the passed tests in the summary tab, I would like to suppress the passed tests output in the side "terminal" tab.

I would like to get access to the following command, run automatically inside CLion:

test.exe --run_test=test --logger=HRF,all --report_format=HRF --show_progress=no

In order to add (remove) whatever option I like to have (not to have).

1

I would also like to know how to change these options manually, although for a different reason.

Right now, when I run Boost test from CLion, the command line looks like this:

<target_name> --log_format=HRF --log_level=all --logger=HRF,all --report_format=HRF --show_progress=no

Only the first two options (log_format and log_level) where added by me. The rest are added automatically by the runner. I've been trying to find how to remove the --logger=HRF,all option for weeks now and I cannot find where it is added.

0
Avatar
Permanently deleted user

Dear Zeron,

I opened a ticket on this and the answer was that in EAP versions of CLion it is possible to do what we wanted to.
Here the link to the request: https://youtrack.jetbrains.com/issueMobile/CPP-11893
Cheers!

Gf

0

Thank you, Gabriele!

0

请先登录再写评论。