在Gradle项目中设置魅力测试报告时出错

时间:2019-08-12 08:38:11

标签: gradle allure

我想使用gradle(https://gebish.org/)为geb框架设置“魅力测试报告”,但是尽管在结果文件夹中创建了json文件,但还是出现了以下错误。

src/test/resources(项目文件夹中)中添加了具有以下内容的allure.properties:

allure.results.directory=build/allure-results

还将此内容添加到build.gradle中,它指向正确的位置:

systemProperty 'allure.results.directory', "$buildDir/allure-results"

https://gist.github.com/rnemeth1980/df0f7ed46487fca13e8d412c23984fbb 显示了build.gradle的一部分

获取以下错误消息:

Cannot write to file '/home/abc/build/allure-results' specified for property '$1' as it is a directory.

更详细的错误日志https://gist.github.com/rnemeth1980/9c66bc96046086253c79275e88aef5d2

请帮助。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。通过在 Intellij 中安装“Gradle Extension”插件解决了这个问题。

相关问题