Running Catch unit tests
Has anyone had success integrating C++ unit testing with Catch into TeamCity? Catch is supposed to be able to generate JUnit XML output. Has anyone tried it with TeamCity?
Thanks in advance.
Please sign in to leave a comment.
Hi Dan,
We haven't tested it directly, but according to https://github.com/philsquared/Catch/blob/master/docs/reporters.md:
-It can generate JUnit XML output, which you can simply import it with the XML Report Processing build feature (https://confluence.jetbrains.com/display/TCD10/XML+Report+Processing)
-It can generate teamcity native output, so you might not even need the JUnit xml report.
To run them, you probably will only need to set it up as a command line run that runs the appropriate command. if you are running any other runner for C++ projects, either your project can call it directly during build, or the plugin will need to implement its support on its own.