Package org.eclipse.unittest.ui
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAction
createOpenEditorAction(Shell shell, ITestElement failure, String traceLine)
Returns an action to open a failure trace elementRunnable
createShowStackTraceInConsoleViewActionDelegate(ITestElement failedTest)
Returns an action to copy an existing stack trace/error message into a console viewString
getDisplayName()
Returns a Test View Support display nameIAction
getOpenTestAction(Shell shell, ITestCaseElement testCase)
Returns an action to open a specified test elementsIAction
getOpenTestAction(Shell shell, ITestSuiteElement testSuite)
Returns an action to open a specified test suite elementILaunchConfiguration
getRerunLaunchConfiguration(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 messageITestRunnerClient
newTestRunnerClient(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 parentShell
instancetestCase
- 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 parentShell
instancetestSuite
- 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 parentShell
instancefailure
- 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
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
-
-