Interface ITestViewSupport


  • public interface ITestViewSupport
    Interface to be implemented by a Test View Support to be returned by org.org.eclipse.unittest.unittestViewSupport extension.
    • Method Detail

      • newTestRunnerClient

        ITestRunnerClient newTestRunnerClient​(ITestRunSession session)
        Returns a Test Runner Client.
        Parameters:
        session - the test session. ⚠️ The session may not be fully initialized at that point, however ITestRunSession.getLaunch() is supposed to return the proper launch.
        Returns:
        returns a Test Runner Client
      • getTraceExclusionFilterPatterns

        Collection<org.eclipse.core.text.StringMatcher> getTraceExclusionFilterPatterns()
        Returns filter patterns to exclude lines from stack trace or an error message
        Returns:
        filter patterns, matching lines will be hidden in the UI
      • getOpenTestAction

        IAction getOpenTestAction​(Shell shell,
                                  ITestCaseElement testCase)
        Returns an action to open a specified test elements
        Parameters:
        shell - a parent Shell instance
        testCase - a test case element
        Returns:
        an action to open a specified test case element, or null
      • getOpenTestAction

        IAction getOpenTestAction​(Shell shell,
                                  ITestSuiteElement testSuite)
        Returns an action to open a specified test suite element
        Parameters:
        shell - a parent Shell instance
        testSuite - a test suite element
        Returns:
        an action to open a specified test suite element, or null
      • createOpenEditorAction

        IAction createOpenEditorAction​(Shell shell,
                                       ITestElement failure,
                                       String traceLine)
        Returns an action to open a failure trace element
        Parameters:
        shell - a parent Shell instance
        failure - a test element that is failed
        traceLine - a stack trace or an error message text
        Returns:
        an action to open a failure trace element, or null
      • createShowStackTraceInConsoleViewActionDelegate

        Runnable createShowStackTraceInConsoleViewActionDelegate​(ITestElement failedTest)
        Returns an action to copy an existing stack trace/error message into a console view
        Parameters:
        failedTest - the failed test
        Returns:
        an Runnable if it can be created, otherwise - null
      • getRerunLaunchConfiguration

        ILaunchConfiguration getRerunLaunchConfiguration​(List<ITestElement> testElements)
        Returns a Rerun launch configuration for the given element
        Parameters:
        testElements - the tests to rerun
        Returns:
        a ILaunchConfiguration, derived from current test session and selected element.
      • getDisplayName

        String getDisplayName()
        Returns a Test View Support display name
        Returns:
        returns a display name