gradle - 在 gradle 项目中设置 Allure 测试报告时出错
问题描述
我想使用 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
请帮忙。
解决方案
我遇到过同样的问题。通过在 Intellij 中安装“Gradle Extension”插件来解决它。
推荐阅读
- google-sheets - 简单现金簿中总计的数组公式
- vue.js - 带有 baseurl 和公共路径的 Nginx 和 Vuejs 3 配置
- python - 如何将列表序列化回其原始二进制数据库?
- r - R错误地将日期作为第一个字段的.csv数据导入
- python - Anaconda Navigator 打不开,conda 也打不开
- javascript - 如何设置多个元素的文本内容
- javascript - 如何结合 3 个更改事件来隐藏 div
- swift - 更改导航按钮 SwiftUI 的颜色
- ruby-on-rails - Ubuntu puma-manager.conf 自定义服务 Job 启动失败
- c++ - 为什么我的覆盖方法没有在 C++ 中被调用?