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
Modifier and TypeMethodDescriptioncreateOpenEditorAction
(Shell shell, ITestElement failure, String traceLine) Returns an action to open a failure trace elementReturns an action to copy an existing stack trace/error message into a console viewReturns a Test View Support display namegetOpenTestAction
(Shell shell, ITestCaseElement testCase) Returns an action to open a specified test elementsgetOpenTestAction
(Shell shell, ITestSuiteElement testSuite) Returns an action to open a specified test suite elementgetRerunLaunchConfiguration
(List<ITestElement> testElements) Returns a Rerun launch configuration for the given elementReturns filter patterns to exclude lines from stack trace or an error messagenewTestRunnerClient
(ITestRunSession session) Returns a Test Runner Client.
-
Method Details
-
newTestRunnerClient
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<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
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
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
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
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
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
-