libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.08k stars 209 forks source link

Deeper integration in CLion for detailed information #346

Open dominikheinz opened 2 years ago

dominikheinz commented 2 years ago

Summary: I am using CLion for the development of my C project, and I am using check as my unit testing framework of choice. Currently, when running my unit tests in CLion, I am just shown what would essentially also be printed to the console when running the test binary - under the Run tab:

/home/user/Documents/project/build/tests
Running suite(s): suite1
 suite2
 suite3
 suite4
100%: Checks: 43, Failures: 0, Errors: 0

Process finished with exit code 0

However, I would like to see some more insight in the the unit tests that have been run such as execution time, pass/fail, directly in the test runner tab. So, something similar to this:

image

It might also be worth mentioning that I am using a GNU Makefile, not a CMake file. Is it possible to provide a deeper integration in CLion?

brarcher commented 2 years ago

Not being familiar with CLion, it's probably not unreasonable for there to be an integration which provides additional details about the test execution. There is one test output format that Check supports which provide information such as test duration:

https://libcheck.github.io/check/doc/check_html/check_4.html#XML-Logging

Thanks for the suggestion. A volunteer from the community, perhaps someone more familiar with CLion, would need to investigate developing such an integration.