testing - Gradle Testkit无法将插件添加到自定义源集

标签 testing gradle integration-testing junit5

当我尝试执行此测试时:

https://gist.github.com/Frontrider/93c3a4fece9903698345f76fad57c85c

比它说:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\H87620143\AppData\Local\Temp\junit5825415720167959245\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating root project 'junit5825415720167959245'.
> Plugin with id 'com.example.testplugin' not found.

我到处环顾了一下(build.gradle中的某些内容只是尝试不同的内容),我无法使其正常工作。

“com.itsh.gradle.releasenotes.properties”文件在build / pluginDescriptors下生成。

最佳答案

使用gradle testkit,

apply plugin: 'id'

语法不起作用,我必须使用新的插件语法。
plugin{
   id 'plugin id'
}

关于testing - Gradle Testkit无法将插件添加到自定义源集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51676455/

相关文章:

testing - 如何对 Liferay 网页进行压力测试?

testing - 用于启用 BLE 广告的蓝牙 HCI 命令

Android 库拒绝创建 R.java,除非构建为 com.android.application

c# - 数据库集成测试结构

wcf - 是否可以在不必运行实际服务的情况下对服务契约(Contract)进行单元测试?

android - Mock Retrofit 错误 okhttp3.ResponseBody$1 无法转换

java - 带有 'doLast' 的空源 jar,搞砸了子项目依赖关系,但没有

android - 在Android Studio上使用lib db4o

testing - 设计 CRUD 测试套件

eclipse - Eclipse 功能集成测试的最佳实践