title: Jenkins doesn't run my Selenium tests ('No tests to run')
body: <p>I have a vanilla Selenium project and I want to run it with Jenkins. I've been reading so many SO posts and made a few corrections in my project in order to make my tests visible. Anyway, when I try to run the tests in Jenkins, I end up with a <code>'No tests to run'</code> message. This is confusing.</p>
  
  <p>Let me show my stuff.</p>
  
  <p>One of my test methods:</p>
  
  <pre><code>package tests;
  
  import junitparams.JUnitParamsRunner;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import junitparams.FileParameters;
  import pages.AnyPage;
  import utils.AbstractTest;
  
  @RunWith(JUnitParamsRunner.class)
  public class DisponibiliteSitesWebTest extends AbstractTest {
  
      @Test
      @FileParameters("src\\selenium\\resources\\check_websites.csv")
      public void test_AffichageTexte(String url, String texteATrouver) {
          accesURL(url);
          AnyPage page = new AnyPage(this);
          page.assertTextDisplayed(texteATrouver);
      }
  }
  </code></pre>
  
  <ul>
  <li>'test' package exists: checked</li>
  <li>Test naming convention: checked</li>
  <li>@Test annotation: checked</li>
  </ul>
  
  <p>My POM:</p>
  
  <pre><code>&lt;project
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
          xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.hightest.nc&lt;/groupId&gt;
      &lt;artifactId&gt;poc&lt;/artifactId&gt;
      &lt;!--&lt;packaging&gt;pom&lt;/packaging&gt;--&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;version&gt;1.0&lt;/version&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;skip&gt;${skip.selenium.tests}&lt;/skip&gt;
                      &lt;parallel&gt;none&lt;/parallel&gt;
                      &lt;threadCount&gt;1&lt;/threadCount&gt;
                      &lt;reuseForks&gt;false&lt;/reuseForks&gt;
                      &lt;disableXmlReport&gt;true&lt;/disableXmlReport&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;runSeleniumTests&lt;/id&gt;
                          &lt;phase&gt;integration-test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;integration-test&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;2.4.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.gebish&lt;/groupId&gt;
              &lt;artifactId&gt;geb-core&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.gebish&lt;/groupId&gt;
              &lt;artifactId&gt;geb-spock&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.spockframework&lt;/groupId&gt;
              &lt;artifactId&gt;spock-core&lt;/artifactId&gt;
              &lt;version&gt;1.0-groovy-2.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-remote-driver&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-firefox-driver&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;4.5.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;pl.pragmatists&lt;/groupId&gt;
              &lt;artifactId&gt;JUnitParams&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.pdfbox&lt;/groupId&gt;
              &lt;artifactId&gt;pdfbox&lt;/artifactId&gt;
              &lt;version&gt;2.0.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;1.3.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.12&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <ul>
  <li>Packaging = jar: checked</li>
  <li>Test scope mentionned: checked</li>
  </ul>
  
  <p>My Jenkins job invokes Maven Goals: <code>clean integration-test</code></p>
  
  <p>What am I missing?</p>
  
  <p>Thanks.</p>