Enhancing Gradle's "test" task with a custom TestFramework
Asked Answered
A

0

6

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?

Aholla answered 11/2, 2019 at 8:21 Comment(1)
Hey @Bass, I am also trying to configure my custom test framework using a Gradle plugin, were you able to resolve this?Armallas

© 2022 - 2024 — McMap. All rights reserved.