Run CppUnitTestFramework Tests

I have a C++ Project with UnitTests using the CppUnitTestFramework. Building the Project with TeamCity is no problem at all. But I dont get the tests working. Is it possible to run CppUnitTestFramework tests with TeamCity and how do I do it?

 

0
1 comment

Hi Philipp,

 

This will depend on how you run the project. TeamCity doesn't ship an explicit bundled runner for C++ so it would make sense to understand what you are doing to run it, rather generic runners that might be used for C++. This means that it's likely to depend on how you are using it. There is also the CMake runner which is non-bundled and could help if you are using that.

 

It's also important to remember that getting the test results, even if they are run, implies that the build runner posts them to teamcity somehow. Native runners will usually have a way to detect the test results and post them, non-native runners can use service messages: https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity or if none of this works, and the test framework can publish a report in one of the supported formats, it can be then added: https://confluence.jetbrains.com/display/TCD18/XML+Report+Processing

0

Please sign in to leave a comment.