ocornut / imgui_test_engine

Dear ImGui Automation Engine & Test Suite
386 stars 40 forks source link

Possibilities for other code coverage test report exporters #3

Closed MohitSethi99 closed 1 year ago

MohitSethi99 commented 1 year ago

I use sonarcloud for project analysis and stuff and junit isn't supported there for C/C++ code coverage. Is there possibility to support exporters in any of the following formats:

VS Coverage LLVM-COV GCOV

ocornut commented 1 year ago

I am not sure I understand how Code Coverage relates to Test Results? Code Coverage and Testing seems to be different concepts ? Could you elaborate ?

MohitSethi99 commented 1 year ago

Perhaps I wasn't clear enough, or my understanding about test reports is limited. As you can see here: https://docs.sonarcloud.io/enriching/test-coverage/c-c-objective-c-test-coverage/ They support selective report formats and junit isn't one of them.

PathogenDavid commented 1 year ago

Test results and code coverage are generally reported and handled completely independently. (At a low level at least, you might get aggregated reports out of some testing frameworks.)

Code coverage is generally done through instrumentation and shouldn't require the cooperation of the test engine.

ocornut commented 1 year ago

The page you linked to under “ Test Execution Parameters “ says CPPUnit which seems to be JUnit format. Anyhow, exporters are easy to write. If something is missing you can write one.

MohitSethi99 commented 1 year ago

Okay, great! If it works I'll inform here, closing the issue for now.