Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 474
user695652 Avatar asked Aug 20 '15 19:08

user695652


People also ask

Is Jenkins used for testing?

Jenkins can be used to automate building an application, running tests, and deploying the application. It can be easily installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.


1 Answers

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.

like image 83
Mike Kinghan Avatar answered Sep 29 '22 18:09

Mike Kinghan