![](/img/trans.png)
[英]Intellij IDEA Console Logging Truncated With TestNG Run/Debug Configuration
[英]IntelliJ Configuration of Automatic Run/Debug Configuration to use TestNG instead of Gradle for Tests
我有一个复杂的 gradle 项目,我已经为它手动设置了构建和其他几个任务的运行/配置配置。
我们使用 TestNG 并且每当我想运行测试时,例如直接通过右键单击测试方法下方
它为项目运行一个 gradle 测试任务:
=============================================================================
BUILD FAILED (ended at 2020-01-03T16:32:00.670+01:00)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':xxx-xxx:test'.
> No tests found for given includes: [XXXXX](filter.includeTestsMatching)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
117 actionable tasks: 4 executed, 113 up-to-date
如果我使用 TestNG 模板手动配置运行/调试配置,它工作正常。
有没有办法将 IntelliJ 配置为使用 TestNG runner 而不是 gradle 任务?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.