title: Running Karate tests from commandline returns surefire-plugin error
body: <p>I've been trying to run my <strong>.feature</strong> karate files from command line. I've been trying to follow the <a href="https://github.com/intuit/karate#command-line" rel="nofollow noreferrer">docs</a>, so that  I've found below instruction:</p>
  
  <pre><code>mvn test -Dtest=CatsRunner
  </code></pre>
  
  <p>When I run above command, I see that my tests are running, and all of them are passing. However, there are some errors being popped up at the end of my command line. Below is the log part:</p>
  
  <pre><code>1 Scenarios (1 passed)
  16 Steps (16 passed)
  0m2.388s
  Karate version: 0.8.0
  html report: (paste into browser to view)
  -----------------------------------------
  file:/D:/Dev/xxx/yyy/karate/target/surefire-reports/TEST-tvplus.singleuseroperations.authenticate.auth-existing-IPTV-user.html
  
  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.302 s - in tvplus.singleuseroperations.authenticate.AuthenticateRunner
  [INFO]
  [INFO] Results:
  [INFO]
  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 14.204 s
  [INFO] Finished at: 2018-12-12T15:50:06+03:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project karate: No tests were executed!  
  (Set -DfailIfNoTests=false to ignore this error.) -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] 
  http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>
  
  <p>I am also pasting my <strong>pom</strong> file below:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.xxx.yyy.zzz&lt;/groupId&gt;
  &lt;artifactId&gt;karate&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;maven.compiler.version&gt;3.6.0&lt;/maven.compiler.version&gt;
      &lt;karate.version&gt;0.8.0&lt;/karate.version&gt;
      &lt;jdbc.version&gt;5.1.3.RELEASE&lt;/jdbc.version&gt;
      &lt;maven.surefire.version&gt;2.22.1&lt;/maven.surefire.version&gt;
  &lt;/properties&gt;    
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-apache&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;            
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-junit4&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
          &lt;version&gt;${jdbc.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.oracle&lt;/groupId&gt;
          &lt;artifactId&gt;ojdbc6&lt;/artifactId&gt;
          &lt;version&gt;11.2.0.4&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-testng&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-core&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.12.4&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;testResources&gt;
          &lt;testResource&gt;
              &lt;directory&gt;src/test/java&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;**/*.java&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.compiler.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                  &lt;source&gt;${java.version}&lt;/source&gt;
                  &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;compilerArgument&gt;-Werror&lt;/compilerArgument&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.surefire.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;argLine&gt;-Dfile.encoding=UTF-8&lt;/argLine&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;       
  </code></pre>
  
  <p></p>
  
  <p>Also, here is my <strong>CatsRunner.java</strong>:</p>
  
  <pre><code>package xyz;
  
  import com.intuit.karate.junit4.Karate;
  import cucumber.api.CucumberOptions;
  import org.junit.runner.RunWith;
  
  @RunWith(Karate.class)
  @CucumberOptions(features = "classpath:xxx/singleuseroperations/authenticate/auth-existing-user.feature")
  
  public class CatsRunner {
  }
  </code></pre>
  
  <p>EDIT: Below part is not related with the question. No need to think about it. Upgrading karate version solved the problem.
  I've been using <strong>@CucumberOptions</strong> at the top of my runner class since I've encountered some trouble when adding <strong>@KarateOptions</strong> annotation to my code.</p>
  
  <p>Thanks in advance.</p>