The existing Test
task only supports three TestFramework
implementations:
How do I add support for a custom test framework (most probably via a Gradle plug-in) -- e. g.: TAP or DejaGnu -- so that my custom unit tests get executed during the test
task?
Update:
The naïve approach of extending an org.gradle.api.tasks.testing.AbstractTestTask
resulted in the following failure at run time (Gradle 5.1 with my custom plug-in applied):
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'.
Do I really have to care about HTML and JUnit XML reports when adding a new test framework?