Search code examples
c++unit-testingcatch-unit-test

Does the catch unit test framework support junit-style test reports?


Planning to switch over to the Catch unit test framework for c++.

I need the test results to be in junit report format and I just want to confirm if it has that capability.


Solution

  • Yes, it does.

    You can generate a JUnit compatible XML report via adding

    -r junit
    

    to the command line of your compiled Catch test suite (cf. Integration with build systems).