Interface TestExecutionDecider


  • public interface TestExecutionDecider
    Override the execution of the Before/Test/After phase of the Test framework.
    Author:
    Stefan Miklosovic
    • Method Detail

      • decide

        ExecutionDecision decide​(Method testMethod)
        This method will be called individually for each event(before/test/after), but should return the same result for each to behave consistently.
        Parameters:
        testMethod - test method to resolve a test execution on. This is always the @Test method regardless of the current phase before or after.
        Returns:
        execution decision telling if a test method is going to be executed or not
      • precedence

        int precedence()
        Higher the precedence is, sooner this decider will be treated.
        Returns:
        precedence of this decider