Package io.qameta.allure.junitplatform
Class AllurePostDiscoveryFilter
java.lang.Object
io.qameta.allure.junitplatform.AllurePostDiscoveryFilter
- All Implemented Interfaces:
org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>,org.junit.platform.launcher.PostDiscoveryFilter
public class AllurePostDiscoveryFilter
extends Object
implements org.junit.platform.launcher.PostDiscoveryFilter
Integrates JUnit Platform with Allure reporting.
Register this type through the standard JUnit Platform extension, listener, interceptor, or plugin mechanism so framework execution events are written to Allure results. Use explicit dependencies when embedding the integration in tests or custom runtimes.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an Allure post discovery filter with default configuration.AllurePostDiscoveryFilter(io.qameta.allure.testfilter.TestPlan testPlan) Creates an Allure post discovery filter with the supplied values. -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.platform.engine.FilterResultapply(org.junit.platform.engine.TestDescriptor object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.engine.Filter
toPredicate
-
Constructor Details
-
AllurePostDiscoveryFilter
public AllurePostDiscoveryFilter()Creates an Allure post discovery filter with default configuration. -
AllurePostDiscoveryFilter
public AllurePostDiscoveryFilter(io.qameta.allure.testfilter.TestPlan testPlan) Creates an Allure post discovery filter with the supplied values.- Parameters:
testPlan- the Allure test plan to evaluate against
-
-
Method Details
-
apply
public org.junit.platform.engine.FilterResult apply(org.junit.platform.engine.TestDescriptor object) - Specified by:
applyin interfaceorg.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>
-