【发布时间】:2019-03-26 20:07:38
【问题描述】:
我是 Gradle 的新手。有自定义 JUnit 监听器,它读取自定义注释数据并生成报告,需要将其配置为 Gradle 的一部分。无论如何在 Gradle 4.4 中配置下面的surefire插件。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<properties>
<property>
<name>listener</name>
<value>my.company.MyRunListener</value>
</property>
</properties>
</configuration>
</plugin>
我了解,可能无法像在 gradle 中那样使用 maven 插件。我检查了TestListener,它不支持读取注释来继续。
我想了解如何在 Gradle 中配置我的 JUnit 侦听器。
【问题讨论】:
标签: gradle junit maven-surefire-plugin