Question

I am introducing unit testing with Google Tests in my c++ projects.

The projects are organized in multiple solutions, each solution containing one (main) project and its dependencies. There is also one build solution, containing all projects.

Each project will add its own [project]_test project to the solution.

The unit tests can be run locally for each project, for each solution.

The build solution will have to be built using TeamCity.

The problem:

Google Tests provide an xml output that can be imported by TeamCity, to get test reports. But TeamCity is only capable of importing a single xml.

Manufacturing a compound xml from all the reports from different projects changes the formatting expected by TeamCity, so the xml is no longer read.

So far I have been unable to find anything that is capable of running multiple c++ projects, running tests, and obtaining test results, in TeamCity.

What are my options ? Thank you.

Was it helpful?

Solution

Mihaela

You could use XML Report processing Build Feature. It may process multiple xml files and import test results. Further information you can find in documentation.

So you don't need to compound xmls and may build all project at once.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top