[英]How to execute performance tests with selenium, junit and jenkins
[英]How to split JUnit Tests in a Jenkins
我正在嘗試使用 Jenkins 的 Junit 類別拆分我的測試。 我在線閱讀了所有指南並做了以下操作。
public interface regression {}
@Category(regression.class)
@Test
public void myTest(){}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<properties>
<property>
<name>listener</name>
<value>test_listener.TestListener</value>
</property>
</properties>
<groups>categories.regression</groups>
</configuration>
</plugin>
我寫了以下終端:
mvn clean test -Dtest=categories.regression
並收到此錯誤消息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project automation: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
我會嘗試再次運行該命令,但使用-Dgroups=categories.regression
而不是-Dtest
另外,請查看:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.