Package dev.galasa.framework
Interface ITestRunManagers
- All Known Implementing Classes:
TestRunManagers
public interface ITestRunManagers
-
Method Summary
Modifier and TypeMethodDescriptionboolean
anyReasonTestMethodShouldBeIgnored
(@NotNull GalasaMethod galasaMethod) endOfTestClass
(@NotNull Result result, Throwable currentException) endOfTestMethod
(@NotNull GalasaMethod galasaMethod, @NotNull Result currentResult, Throwable currentException) void
void
fillAnnotatedFields
(Object testClassObject) void
void
void
void
void
default void
setResultSoFar
(IResult newResult) The result has changed, it could change again.void
shutdown()
void
void
startOfTestMethod
(@NotNull GalasaMethod galasaMethod) void
testClassResult
(@NotNull Result finalResult, Throwable finalException) Tells the managers about the final end-result of the test.
-
Method Details
-
anyReasonTestClassShouldBeIgnored
- Throws:
FrameworkException
-
getActiveManagers
-
provisionGenerate
- Throws:
FrameworkException
-
provisionBuild
- Throws:
FrameworkException
-
testClassResult
Tells the managers about the final end-result of the test. All other methods on the test have been called that are going to be called. This method is called only once, after the @AfterClass methods. -
endOfTestClass
Result endOfTestClass(@NotNull @NotNull Result result, Throwable currentException) throws FrameworkException - Throws:
FrameworkException
-
endOfTestRun
void endOfTestRun() -
provisionStart
- Throws:
FrameworkException
-
shutdown
void shutdown() -
startOfTestClass
- Throws:
FrameworkException
-
provisionDiscard
void provisionDiscard() -
provisionStop
void provisionStop() -
anyReasonTestMethodShouldBeIgnored
Result anyReasonTestMethodShouldBeIgnored(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException - Throws:
FrameworkException
-
fillAnnotatedFields
- Throws:
FrameworkException
-
startOfTestMethod
- Throws:
FrameworkException
-
endOfTestMethod
Result endOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod, @NotNull @NotNull Result currentResult, Throwable currentException) throws FrameworkException - Throws:
FrameworkException
-
setResultSoFar
The result has changed, it could change again. It could be set the the same thing multiple times. This call is used to propogate the very latest overall test result state down to the managers, so they know the test state. This can be used by the @TestResultProvider annotation for example, to maintain a 'current test result' which tests themselves, and @AfterClass methods can use.- Since:
- 0.41.0
-