user695652
user695652

Reputation: 4275

Executing Google Test on Jenkins (Easy)

I managed to install Google Test on Jenkins.

I use cmake to build the test executable and everything works fine.

The stupid question I have now is:

How do I automatically let Jenkins run google test? Do I have to write a shell script for this or is there a better way?


I know that one could run it in ant but since I use cmake I doubt that this is the right way to go.

Upvotes: 5

Views: 6789

Answers (1)

Mike Kinghan
Mike Kinghan

Reputation: 61307

There's no builtin or pluggable "Googletest automation" for Jenkins. You've built the test executable with CMake in a build step. Execute the test executable in a subsequent build step with xml test reporting enabled and configure the build to archive or otherwise publish the test reports.

Upvotes: 5

Related Questions