Package org.eclipse.unittest.ui
Interface ITestViewSupport
-
public interface ITestViewSupportInterface to be implemented by a Test View Support to be returned by org.org.eclipse.unittest.unittestViewSupport extension.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IActioncreateOpenEditorAction(Shell shell, ITestElement failure, String traceLine)Returns an action to open a failure trace elementRunnablecreateShowStackTraceInConsoleViewActionDelegate(ITestElement failedTest)Returns an action to copy an existing stack trace/error message into a console viewStringgetDisplayName()Returns a Test View Support display nameIActiongetOpenTestAction(Shell shell, ITestCaseElement testCase)Returns an action to open a specified test elementsIActiongetOpenTestAction(Shell shell, ITestSuiteElement testSuite)Returns an action to open a specified test suite elementILaunchConfigurationgetRerunLaunchConfiguration(List<ITestElement> testElements)Returns a Rerun launch configuration for the given elementCollection<org.eclipse.core.text.StringMatcher>getTraceExclusionFilterPatterns()Returns filter patterns to exclude lines from stack trace or an error messageITestRunnerClientnewTestRunnerClient(ITestRunSession session)Returns a Test Runner Client.
-
-
-
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, howeverITestRunSession.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 parentShellinstancetestCase- 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 parentShellinstancetestSuite- 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 parentShellinstancefailure- a test element that is failedtraceLine- 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
Runnableif 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
-
-