Interface TestExecutionContext

  • All Known Implementing Classes:

    public interface TestExecutionContext
    A TestExecutionContext represents the execution context for a test that has been launched by the JUnitLauncherTask and provides any necessary contextual information about such tests.
    • Method Detail

      • getProperties

        java.util.Properties getProperties()
        Returns the properties that were used for the execution of the test
      • getProject

        java.util.Optional<Project> getProject()
        Returns the Project in whose context the test is being executed. The Project is sometimes not available, like in the case where the test is being run in a forked mode, in such cases this method returns an empty value