How to configure the RunTests project on Jenkins to execute all Tests available in your project.
Before you begin
- In the RunTests project configuration, set the path to the <jenkins_workspace>/RunTests/projectSources/pom.xml file generated previously in the Root POM field of the Build area.
In the Goals and options field, enter the Maven
instruction run all Tests.
test -fn -e
This Jenkins project retrieves the POM file generated during source generation and use it to run all available Test Cases.
In the Advanced part of the Build
area, select Settings file in filesystem in the
Settings file list and point to the Maven settings
file of the Studio with all the dependencies needed to run all Tests.
- (Optional) Add a post-build action to trigger the DeployToNexus build. Note that, if you add this step, artifacts will be deployed automatically to Nexus after Test executions following default instructions (default groupID, default version, etc.) held in the source POM file. These default values can be edited through the Studio project settings before generating the sources and their corresponding POM file.