gpt4 book ai didi

grails - 无法从命令行运行单个测试规范

转载 作者:行者123 更新时间:2023-12-02 14:22:32 26 4
gpt4 key购买 nike

发行时

grails test-app PostIntegrationSpec

从命令行,出现以下错误:
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> No tests found for given includes: [PostIntegrationSpec]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.115 secs
| Tests FAILED Test execution failed

测试在那里,并且如果例如通过IntelliJ的JUnit运行它们。另外,grails test-app-integration也可以正常工作。我认为gradle在那里可能有问题,但截至目前仍无法找到问题。也许是错误的插件?

我使用的是开箱即​​用的,grails create-app配置,并有
| Grails Version: 3.1.9
| Groovy Version: 2.4.7
| JVM Version: 1.8.0_25

最佳答案

一种方法...

./gradlew iT --tests *PostIntegration*

关于grails - 无法从命令行运行单个测试规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38383835/

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