【问题标题】:Error while setting up Allure Test Reporting in gradle project在 gradle 项目中设置 Allure 测试报告时出错
【发布时间】:2019-08-12 08:38:11
【问题描述】:

我想使用 gradle (https://gebish.org/) 为 geb 框架设置 Allure 测试报告,但尽管在结果文件夹中创建了 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

请帮忙。

【问题讨论】:

    标签: gradle allure


    【解决方案1】:

    我有同样的问题。通过将“Gradle Extension”插件安装到 Intellij 来解决它。

    【讨论】:

      猜你喜欢
      • 2021-08-04
      • 1970-01-01
      • 2017-05-02
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 2013-05-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多