Package org.concordion.internal.runner
Class DefaultConcordionRunner
java.lang.Object
org.concordion.internal.runner.DefaultConcordionRunner
- All Implemented Interfaces:
Runner
A
run-command runner
that uses JUnit
Platform engines (e.g. "concordion", "junit-vintage") to run the fixture
class' specification/examples. The fixture class is usually annotated with
@ConcordionFixture
or @RunWith(ConcordionRunner.class)
.
Not to be confused with
ConcordionRunner
which is a Runner
used with
@RunWith
annotation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ResultSummary
decodeJUnitPlatformEngineResult
(org.junit.platform.launcher.listeners.TestExecutionSummary summary, Class<?> fixtureClass) protected Class<?>
findTestClass
(Resource resource, String href) Finds the test class for the specification referenced by the given href, relative to the resource.protected org.junit.platform.launcher.listeners.TestExecutionSummary
runJUnitPlatformEngine
(Class<?> fixtureClass, String engineId) protected ResultSummary
runTestClass
(Class<?> fixtureClass)
-
Constructor Details
-
DefaultConcordionRunner
public DefaultConcordionRunner()
-
-
Method Details
-
execute
-
findTestClass
Finds the test class for the specification referenced by the given href, relative to the resource.- Parameters:
resource
- the current resourcehref
- the specification to find the test class for- Returns:
- test class
- Throws:
ClassNotFoundException
- if test class not found
-
runTestClass
- Throws:
Exception
-
runJUnitPlatformEngine
-
decodeJUnitPlatformEngineResult
protected ResultSummary decodeJUnitPlatformEngineResult(org.junit.platform.launcher.listeners.TestExecutionSummary summary, Class<?> fixtureClass) throws AssertionError, Exception - Throws:
AssertionError
Exception
-