我构建了一个maven项目,在src / test /文件夹中我有一个简单的junit测试。 pom结构在
之下<project...>
<groupId>com.store</groupId>
<artifactId>SampleProject</artifactID>
<version>1.0</version>
..........
.........
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
.......
.......
</plugins>
</build>
</project>
和junit测试如下
public class SampleTest
{
@Test
public void sampleTest(){
Assert.assertEquals(true, true);
}
}
当我从命令行说mvn test(执行mvn clean install之后)时, 它说
[INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ SeleniumTests ---
[INFO] Tests are skipped.
这是什么原因。? 我到哪儿都错了?
谢谢, 的Manoj