@API(value=Experimental) public class JupiterTestEngine extends HierarchicalTestEngine<JupiterEngineExecutionContext>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_ID |
Constructor and Description |
---|
JupiterTestEngine() |
Modifier and Type | Method and Description |
---|---|
protected JupiterEngineExecutionContext |
createExecutionContext(ExecutionRequest request)
Create the initial execution context for executing the supplied
request . |
TestDescriptor |
discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId)
Discover tests according to the supplied
EngineDiscoveryRequest . |
java.lang.String |
getId()
Get the ID that uniquely identifies this test engine.
|
execute
public static final java.lang.String ENGINE_ID
public java.lang.String getId()
TestEngine
Each test engine must provide a unique ID. JUnit Vintage and Jupiter
use "junit-vintage"
and "junit-jupiter"
, respectively.
When in doubt, you may use the fully qualified name of your custom
TestEngine
implementation class.
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
TestEngine
EngineDiscoveryRequest
.
The supplied UniqueId
must be used as the unique ID of the
returned root TestDescriptor
. In addition, the UniqueId
must be used to create unique IDs for children of the root's descriptor
by calling UniqueId.append(java.lang.String, java.lang.String)
.
discoveryRequest
- the discovery requestuniqueId
- the unique ID to be used for this test engine's
TestDescriptor
TestDescriptor
of this engine, typically an
instance of EngineDescriptor
EngineDescriptor
protected JupiterEngineExecutionContext createExecutionContext(ExecutionRequest request)
HierarchicalTestEngine
request
.createExecutionContext
in class HierarchicalTestEngine<JupiterEngineExecutionContext>
request
- the request about to be executed