Class MavenTestResultCollector
java.lang.Object
io.github.mov2day.unifiedtest.collector.MavenTestResultCollector
- All Implemented Interfaces:
ITestResultCollector
Maven-compatible test result collector.
This implementation has no Gradle dependencies, making it suitable for Maven projects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(UnifiedTestResult result) Adds a test result to the collection.Gets all collected test results.booleanChecks if a result exists for the specified test.
-
Constructor Details
-
MavenTestResultCollector
public MavenTestResultCollector()Default constructor required for ServiceLoader.
-
-
Method Details
-
addResult
Description copied from interface:ITestResultCollectorAdds a test result to the collection.- Specified by:
addResultin interfaceITestResultCollector- Parameters:
result- the test result to add
-
getResults
Description copied from interface:ITestResultCollectorGets all collected test results.- Specified by:
getResultsin interfaceITestResultCollector- Returns:
- list of all test results
-
hasResult
Description copied from interface:ITestResultCollectorChecks if a result exists for the specified test.- Specified by:
hasResultin interfaceITestResultCollector- Parameters:
className- the test class nametestName- the test method name- Returns:
- true if a result exists for this test
-