Interface Launcher

    • Method Detail

      • registerTestExecutionListeners

        void registerTestExecutionListeners​(TestExecutionListener... listeners)
        Register one or more listeners for test execution.
        Parameters:
        listeners - the listeners to be notified of test execution events; never null or empty
      • discover

        TestPlan discover​(LauncherDiscoveryRequest launcherDiscoveryRequest)
        Discover tests and build a TestPlan according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results.
        Parameters:
        launcherDiscoveryRequest - the launcher discovery request; never null
        Returns:
        a TestPlan that contains all resolved identifiers from all registered engines
      • execute

        void execute​(LauncherDiscoveryRequest launcherDiscoveryRequest,
                     TestExecutionListener... listeners)
        Execute a TestPlan which is built according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.

        Supplied test execution listeners are registered in addition to already registered listeners but only for the supplied launcher discovery request.

        Parameters:
        launcherDiscoveryRequest - the launcher discovery request; never null
        listeners - additional test execution listeners; never null