Package org.projectnessie.junit.engine
Class MultiEnvTestFilter
- java.lang.Object
-
- org.projectnessie.junit.engine.MultiEnvTestFilter
-
- All Implemented Interfaces:
org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>,org.junit.platform.launcher.PostDiscoveryFilter
public class MultiEnvTestFilter extends java.lang.Object implements org.junit.platform.launcher.PostDiscoveryFilterThis filter excludes multi-environment tests engines from the JUnit Jupiter Test Engine.Background:
MultiEnvTestEnginedelegates test discovery to JUnit Jupiter to run each test class against a certain Nessie environment. However, JUnit Jupiter itself also discovers the same tests, yet those test instances would not have the expected Nessie services running during execution. Those tests can be skipped, but with this filter it's nicer, because JUnit Jupiter does not even attempt to run them. Therefore, the duplicate discoveries will not appear in IDEs and build output - less user confusion.
-
-
Constructor Summary
Constructors Constructor Description MultiEnvTestFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.platform.engine.FilterResultapply(org.junit.platform.engine.TestDescriptor test)
-