gpt4 book ai didi

Gradle:运行单个测试会出现错误:Caused by: org.gradle.api.InvalidUserDataException property '$1' as it is a directory

转载 作者:行者123 更新时间:2023-12-03 04:16:31 24 4
gpt4 key购买 nike

当我尝试像这样在命令行中运行单个测试时:

gradle test --tests *MatchfichePageTest

我收到以下错误:

A problem was found with the configuration of task ':test'.
> Cannot write to file '/Users/macbookprobartvr/Documents/workspace/aem-site-sporza-tests/build/allure-results' specified for property '$1' as it is a directory.

完整的堆栈跟踪:我无法发布,因为 stackoverflow 提示代码太多......

有人知道问题出在哪里吗?

Gradle 版本 5.2.1

最佳答案

运行测试前删除build/allure-results文件夹。

rm -rf/Users/macbookprobartvr/Documents/workspace/aem-site-sporza-tests/build/allure-results

现在运行测试,它现在应该可以工作了。

关于Gradle:运行单个测试会出现错误:Caused by: org.gradle.api.InvalidUserDataException property '$1' as it is a directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55126411/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com