现有的Test
任务仅支持三个TestFramework
实现:
如何添加对自定义测试框架的支持(很可能是通过 Gradle 插件)的-e。 g.:TAP或DejaGnu-这样我的自定义单元测试就可以在test
任务中执行?
天真的扩展org.gradle.api.tasks.testing.AbstractTestTask
的方法在运行时导致以下失败( Gradle 5.1,应用了我的自定义插件):
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':test1'.
> No value has been specified for property 'binResultsDir'.
> No value has been specified for property 'reports.html.destination'.
> No value has been specified for property 'reports.junitXml.destination'.
> No value has been specified for property 'reports.enabledReports.html.destination'.
> No value has been specified for property 'reports.enabledReports.junitXml.destination'.
添加新的测试框架时,真的需要关心 HTML 和 JUnit XML 报告吗?