有没有办法将生成的报告的输出目录更改为自定义目录 - 特别是 .json-Report 文件?
文档说(http://jgiven.org/userguide/ - 4.2):
[...] JGiven 尝试自动检测它何时由 Maven surefire 插件 [我正在使用它] 执行,并在这种情况下将报告生成到 target/jgiven-reports/json 中。[...]
我将 jGiven 与 Maven 一起使用(用于 Appium 测试)。
配置(pom.xml - 依赖项):
<dependency>
<groupId>com.tngtech.jgiven</groupId>
<artifactId>jgiven-testng</artifactId>
<version>0.15.1</version>
<scope>test</scope>
</dependency>
配置(pom.xml - 构建/插件):
<plugin>
<groupId>com.tngtech.jgiven</groupId>
<artifactId>jgiven-maven-plugin</artifactId>
<version>0.15.1</version>
<executions>
<execution>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
由于该目录是由 jGiven 定义的,因此更改构建目录无济于事。它仍然会使用该target/jgiven-reports/json
目录。
提前致谢!