运行maven clean test命令时出错

时间:2015-08-13 11:53:47

标签: allure

我在使用maven clean test命令运行TestNG测试套件时收到以下错误消息:

T E S T S

运行TestSuite 听众ru.yandex.qatools.allure.junit.AllureRunListener@138450f0必须是一个o f ITestListenerISuiteListenerIReporterIAnnotationTransformerIMethodInterceptorIInvokedMethodListener

你们中的任何人都可以帮我解决这个问题。

谢谢, Snehal

2 个答案:

答案 0 :(得分:1)

我认为您在ru.yandex.qatools.allure.junit.AllureRunListener

中导入错误

检查导入仅限testng。

答案 1 :(得分:1)

问题是您正在使用Allure JUnit侦听器进行testNg测试。要解决此问题,只需从surefire-maven-plugin删除侦听器配置。

查看官方testNg示例https://github.com/allure-examples/allure-testng-example

相关问题