Class ExtRunListener

    • Constructor Detail

      • ExtRunListener

        public ExtRunListener()
    • Method Detail

      • testSuiteStarted

        public void testSuiteStarted​(Description desc)
                              throws java.lang.Exception
        Called when a test suite is about to be started. If this method is called for a given Description, then testSuiteFinished(Description) will also be called for the same Description.

        Note that not all runners will call this method, so runners should be prepared to handle RunListener.testStarted(Description) calls for tests where there was no corresponding testSuiteStarted(Description) call for the parent Description.

        Parameters:
        desc - the description of the test suite that is about to be run (generally a class name)
        Throws:
        java.lang.Exception
        Since:
        4.13
      • testSuiteFinished

        public void testSuiteFinished​(Description desc)
                               throws java.lang.Exception
        Called when a test suite has finished, whether the test suite succeeds or fails. This method will not be called for a given Description unless testSuiteStarted(Description) was called for the same Description.
        Parameters:
        desc - the description of the test suite that just ran
        Throws:
        java.lang.Exception
        Since:
        4.13
      • testRunAborted

        public void testRunAborted()
        Invoked for stop and for break originated by the user.
      • testClassStructureLoaded

        public void testClassStructureLoaded​(Description desc)
        Invoked if a test class is loaded defining a testsuite described by desc.