Class ModuleTestExecutor
java.lang.Object
org.hl7.fhir.utilities.tests.execution.ModuleTestExecutor
- Direct Known Subclasses:
JUnit4TestExecutor,JUnit5ModuleTestExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CliTestSummaryexecuteTests(org.slf4j.Logger log, String classNameFilter) abstract Stringstatic voidlogSummary(org.slf4j.Logger log, CliTestSummary testExecutionSummary, String moduleName) Utility method to print the summary of execution in human-readable format.static voidprintTestFailed(org.slf4j.Logger log, String uniqueIdentifier, Throwable throwable) static voidprintTestFinished(org.slf4j.Logger log, String displayName, String status) static voidprintTestStarted(org.slf4j.Logger log, String displayName)
-
Constructor Details
-
ModuleTestExecutor
public ModuleTestExecutor()
-
-
Method Details
-
logSummary
public static void logSummary(org.slf4j.Logger log, CliTestSummary testExecutionSummary, String moduleName) Utility method to print the summary of execution in human-readable format.
Any test failures are listed using the same unique IDs output in theJUnit5ModuleTestExecutor.executeTests(Logger, String)method.- Parameters:
log- the log to write summary data to.testExecutionSummary- the test summarymoduleName- the module name
-
printTestStarted
-
printTestFailed
public static void printTestFailed(org.slf4j.Logger log, String uniqueIdentifier, Throwable throwable) -
printTestFinished
-
getModuleName
-
executeTests
-