Java Selenium eclipse maven测试未执行
我正在尝试使用eclipse>>作为maven测试运行来执行java selenium。但是我的测试没有运行。但建设是成功的。 我能够使用run as testng运行 这是我的POM文件Java Selenium eclipse maven测试未执行,java,eclipse,maven,selenium,Java,Eclipse,Maven,Selenium,我正在尝试使用eclipse>>作为maven测试运行来执行java selenium。但是我的测试没有运行。但建设是成功的。 我能够使用run as testng运行 这是我的POM文件 <modelVersion>4.0.0</modelVersion> <groupId>com.org.ccc</groupId> <artifactId>aa</artifactId> <version>0.
<modelVersion>4.0.0</modelVersion>
<groupId>com.org.ccc</groupId>
<artifactId>aa</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>aaaa</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</project>
有什么帮助吗?clean package install exec:java您是否将此作为目标?您是否在测试中使用注释?尝试使用“clean test”目标应该可以。
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.579 s
[INFO] Finished at: 2020-02-03T12:18:19+13:00
[INFO] ------------------------------------------------------------------------