unit testing - TeamCity Code Coverage of C++ code -
we have project using c#, c++/cli , native c++ code. use teamcity building , testing.
we run tests using vstest.console (vs2012 test runner).
for managed code, dotcover (which integrated teamcity) used code coverage. however, doesn't work native c++ code (which expected).
how code coverage results our unit tests native c++ parts teamcity? ideally, solution free.
we use bullseye coverage c++ code coverage. use provided covxml
tool convert binary coverage files xml file, read out bunch of useful attributes function , conditional coverage (e.g. fn_total
, fn_cov
, cd_total
, cd_cov
) , provide these teamcity via statistics service messages using predefined coverage keys.
it bit of work set up, think teamcity still has no support c++ coverage tool, our solution still works years later.
edit: i've uploaded xml parsing code our in-house tool gist.
Comments
Post a Comment