Maven is not running my mockito tests when deployment

Viewed 108

There are mockito tests in my project. I want to deploy my project but maven is not running some my tests when deployment.

enter image description here

This is my deploy view.

enter image description here

1 Answers
<plugins>
   <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>3.0.0-M5</version>
      <dependencies>
         <dependency>
            <groupId>org.apache.maven.surefire</groupId>
            <artifactId>surefire-junit47</artifactId>
            <version>3.0.0-M5</version>
         </dependency>
      </dependencies>
   </plugin>
</plugins>

Before, I have faced same problem. I don't know your pom.xml but when i add this dependency it worked. If you don't already have this in your pom.xml, you can give it a try.

Related