Class JUnit5Adapter
java.lang.Object
io.github.mov2day.unifiedtest.framework.JUnit5Adapter
- All Implemented Interfaces:
TestFrameworkAdapter
JUnit 5 framework adapter for UnifiedTest.
Handles registration of test listeners and configuration for JUnit 5 test execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the test framework this adapter supports.booleanisApplicable(org.gradle.api.Project project) Checks if this adapter is applicable for the given project.voidregisterListeners(org.gradle.api.Project project, org.gradle.api.tasks.testing.Test testTask, UnifiedTestResultCollector collector, ConsoleReporter reporter) Registers test listeners for the framework with the given project and test task.
-
Constructor Details
-
JUnit5Adapter
public JUnit5Adapter()
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.gradle.api.Project project) Description copied from interface:TestFrameworkAdapterChecks if this adapter is applicable for the given project.- Specified by:
isApplicablein interfaceTestFrameworkAdapter- Parameters:
project- the Gradle project to check- Returns:
- true if this adapter can be used with the project
-
registerListeners
public void registerListeners(org.gradle.api.Project project, org.gradle.api.tasks.testing.Test testTask, UnifiedTestResultCollector collector, ConsoleReporter reporter) Description copied from interface:TestFrameworkAdapterRegisters test listeners for the framework with the given project and test task.- Specified by:
registerListenersin interfaceTestFrameworkAdapter- Parameters:
project- the Gradle projecttestTask- the test task to configurecollector- collector for test resultsreporter- reporter for console output
-
getName
Description copied from interface:TestFrameworkAdapterGets the name of the test framework this adapter supports.- Specified by:
getNamein interfaceTestFrameworkAdapter- Returns:
- the name of the test framework
-