Class TestSupport

    • Field Detail

      • started

        volatile boolean started
      • include

        volatile Pattern include
      • exclude

        volatile Pattern exclude
      • includeEngines

        volatile List<String> includeEngines
      • excludeEngines

        volatile List<String> excludeEngines
      • displayTestOutput

        volatile boolean displayTestOutput
      • explicitDisplayTestOutput

        volatile Boolean explicitDisplayTestOutput
      • brokenOnlyMode

        volatile boolean brokenOnlyMode
      • appPropertiesIncludeTags

        String appPropertiesIncludeTags
      • appPropertiesExcludeTags

        String appPropertiesExcludeTags
      • appPropertiesIncludePattern

        String appPropertiesIncludePattern
      • appPropertiesExcludePattern

        String appPropertiesExcludePattern
      • appPropertiesIncludeEngines

        String appPropertiesIncludeEngines
      • appPropertiesExcludeEngines

        String appPropertiesExcludeEngines
      • appPropertiesTestType

        String appPropertiesTestType
    • Method Detail

      • isRunning

        public boolean isRunning()
      • getStatus

        public TestSupport.RunStatus getStatus()
        returns the current status of the test runner.

        This is expressed in terms of test run ids, where -1 signifies no result.

      • start

        public void start()
      • init

        public void init()
      • close

        public void close()
      • stop

        public void stop()
      • runTests

        public void runTests()
      • runFailedTests

        public void runFailedTests()
        Description copied from interface: TestController
        re-runs all tests that are currently in a failed state
        Specified by:
        runFailedTests in interface TestController
      • runInternal

        void runInternal​(ClassScanResult classScanResult,
                         boolean reRunFailures)
      • addListener

        public void addListener​(TestListener listener)
      • isStarted

        public boolean isStarted()
      • getRunningTestRunId

        public long getRunningTestRunId()
      • setPatterns

        public void setPatterns​(String include,
                                String exclude)
      • setEngines

        public void setEngines​(List<String> includeEngines,
                               List<String> excludeEngines)
      • setConfiguredDisplayTestOutput

        public TestSupport setConfiguredDisplayTestOutput​(boolean displayTestOutput)
      • setDisplayTestOutput

        public void setDisplayTestOutput​(boolean displayTestOutput)
        Description copied from interface: TestController
        Sets if test output should be displayed in the logs
        Specified by:
        setDisplayTestOutput in interface TestController
      • toggleBrokenOnlyMode

        public boolean toggleBrokenOnlyMode()
        Description copied from interface: TestController
        Toggles 'broken only' mode, where only failing tests are run
        Specified by:
        toggleBrokenOnlyMode in interface TestController
        Returns:
        true if this change enabled broken only mode
      • toggleTestOutput

        public boolean toggleTestOutput()
        Description copied from interface: TestController
        Toggles test output
        Specified by:
        toggleTestOutput in interface TestController
        Returns:
        true if this change to test output mode
      • toggleInstrumentation

        public boolean toggleInstrumentation()
        Description copied from interface: TestController
        Toggles instrumentation based reload.
        Specified by:
        toggleInstrumentation in interface TestController
        Returns:
        true if this change to do instrumentation based reload
      • toggleLiveReloadEnabled

        public boolean toggleLiveReloadEnabled()
        Description copied from interface: TestController
        Toggles instrumentation based reload.
        Specified by:
        toggleLiveReloadEnabled in interface TestController
        Returns:
        true if this change to do instrumentation based reload
      • isBrokenOnlyMode

        public boolean isBrokenOnlyMode()
        Specified by:
        isBrokenOnlyMode in interface TestController
        Returns:
        true if broken only mode is enabled
      • testCompileFailed

        public void testCompileFailed​(Throwable e)
      • testCompileSucceeded

        public void testCompileSucceeded()
      • setConfig

        public void setConfig​(TestConfig config)