Class SuiteTestEngine
- All Implemented Interfaces:
TestEngine
TestEngine.- Since:
- 1.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) Discover tests according to the suppliedEngineDiscoveryRequest.voidexecute(ExecutionRequest request) Execute tests according to the suppliedExecutionRequest.Returnsjunit-platform-suite-engineas the artifact ID.Returnsorg.junit.platformas the group ID.getId()Get the ID that uniquely identifies this test engine.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.TestEngine
getVersion
-
Constructor Details
-
SuiteTestEngine
public SuiteTestEngine()
-
-
Method Details
-
getId
Description copied from interface:TestEngineGet the ID that uniquely identifies this test engine.Each test engine must provide a unique ID. For example, JUnit Vintage and JUnit Jupiter use
"junit-vintage"and"junit-jupiter", respectively. When in doubt, you may use the fully qualified name of your customTestEngineimplementation class.- Specified by:
getIdin interfaceTestEngine- Returns:
- the ID of this test engine; never
nullor blank
-
getGroupId
Returnsorg.junit.platformas the group ID.- Specified by:
getGroupIdin interfaceTestEngine- Returns:
- an
Optionalcontaining the group ID; nevernullbut potentially empty if the group ID is unknown - See Also:
-
getArtifactId
Returnsjunit-platform-suite-engineas the artifact ID.- Specified by:
getArtifactIdin interfaceTestEngine- Returns:
- an
Optionalcontaining the artifact ID; nevernullbut potentially empty if the artifact ID is unknown - See Also:
-
discover
Description copied from interface:TestEngineDiscover tests according to the suppliedEngineDiscoveryRequest.The supplied
UniqueIdmust be used as the unique ID of the returned rootTestDescriptor. In addition, theUniqueIdmust be used to create unique IDs for children of the root's descriptor by callingUniqueId.append(java.lang.String, java.lang.String).- Specified by:
discoverin interfaceTestEngine- Parameters:
discoveryRequest- the discovery request; nevernulluniqueId- the unique ID to be used for this test engine'sTestDescriptor; nevernull- Returns:
- the root
TestDescriptorof this engine, typically an instance ofEngineDescriptor - See Also:
-
execute
Description copied from interface:TestEngineExecute tests according to the suppliedExecutionRequest.The
requestpassed to this method contains the rootTestDescriptorthat was previously returned byTestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId), theEngineExecutionListenerto be notified of test execution events, andConfigurationParametersthat may influence test execution.- Specified by:
executein interfaceTestEngine- Parameters:
request- the request to execute tests for; nevernull
-