Hi guys!
I have a problem with my Jenkins and Cucumber test... My Jenkins doesn't execute my Cucumber tests and I don't know why...
The console output from Jenkins show the following:
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@612fc6eb
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.657 sec
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[JENKINS] Recording test results
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ Cucumber_Test ---
[INFO] Building jar: /data/jenkins/QA - CucumberMaven/workspace/CucumberTest/target/Cucumber_Test-0.0.1-SNAPSHOT.jar
[INFO] --- maven-install-plugin:2.4:install (default-install) @ Cucumber_Test ---
[INFO] Installing /data/jenkins/QA - CucumberMaven/workspace/CucumberTest/target/Cucumber_Test-0.0.1-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/Cucumber_Test/Cucumber_Test/0.0.1-SNAPSHOT/Cucumber_Test-0.0.1-SNAPSHOT.jar
[INFO] Installing /data/jenkins/QA - CucumberMaven/workspace/CucumberTest/pom.xml to /var/lib/jenkins/.m2/repository/Cucumber_Test/Cucumber_Test/0.0.1-SNAPSHOT/Cucumber_Test-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.045 s
[INFO] Finished at: 2018-02-20T12:56:55+01:00
[INFO] Final Memory: 26M/87M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /data/jenkins/QA - CucumberMaven/workspace/CucumberTest/pom.xml to Cucumber_Test/Cucumber_Test/0.0.1-SNAPSHOT/Cucumber_Test-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/QA - CucumberMaven/workspace/CucumberTest/target/Cucumber_Test-0.0.1-SNAPSHOT.jar to Cucumber_Test/Cucumber_Test/0.0.1-SNAPSHOT/Cucumber_Test-0.0.1-SNAPSHOT.jar
My estructure is the following:
My pom.xml is:
<modelVersion>4.0.0</modelVersion>
<groupId>Cucumber_Test</groupId>
<artifactId>Cucumber_Test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<sourceDirectory>src</sourceDirectory>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<type>maven-plugin</type>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<type>maven-plugin</type>
<artifactId>junit</artifactId>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.2</version>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>2.0.2-beta</version>
My RunTest.java is:
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
features = "src/test/resources/"
-------------------------------------------------------------------------
What am I doing wrong? From my local computer everything works fine.
Thanks so much for your help!