本文整理汇总了Java中com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView类的典型用法代码示例。如果您正苦于以下问题:Java BaseTestsOutputConsoleView类的具体用法?Java BaseTestsOutputConsoleView怎么用?Java BaseTestsOutputConsoleView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseTestsOutputConsoleView类属于com.intellij.execution.testframework.ui包,在下文中一共展示了BaseTestsOutputConsoleView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: execute
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Override
public ExecutionResult execute(Executor executor, CommandLinePatcher... patchers) throws ExecutionException {
final ProcessHandler processHandler = startProcess(patchers);
final ConsoleView console = createAndAttachConsole(myConfiguration.getProject(), processHandler, executor);
List<AnAction> actions = Lists
.newArrayList(createActions(console, processHandler));
DefaultExecutionResult executionResult =
new DefaultExecutionResult(console, processHandler, actions.toArray(new AnAction[actions.size()]));
PyRerunFailedTestsAction rerunFailedTestsAction = new PyRerunFailedTestsAction(console);
if (console instanceof SMTRunnerConsoleView) {
rerunFailedTestsAction.init(((BaseTestsOutputConsoleView)console).getProperties());
rerunFailedTestsAction.setModelProvider(new Getter<TestFrameworkRunningModel>() {
@Override
public TestFrameworkRunningModel get() {
return ((SMTRunnerConsoleView)console).getResultsViewer();
}
});
}
executionResult.setRestartActions(rerunFailedTestsAction, new ToggleAutoTestAction());
return executionResult;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:PythonTestCommandLineStateBase.java
示例2: execute
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Override
public ExecutionResult execute(Executor executor, CommandLinePatcher... patchers) throws ExecutionException {
final ProcessHandler processHandler = startProcess(getDefaultPythonProcessStarter(), patchers);
final ConsoleView console = createAndAttachConsole(configuration.getProject(), processHandler, executor);
DefaultExecutionResult executionResult = new DefaultExecutionResult(console, processHandler, createActions(console, processHandler));
PTestRerunFailedTestsAction rerunFailedTestsAction = new PTestRerunFailedTestsAction(console);
if (console instanceof SMTRunnerConsoleView) {
rerunFailedTestsAction.init(((BaseTestsOutputConsoleView) console).getProperties());
rerunFailedTestsAction.setModelProvider(() -> ((SMTRunnerConsoleView) console).getResultsViewer());
}
executionResult.setRestartActions(rerunFailedTestsAction, new ToggleAutoTestAction());
return executionResult;
}
开发者ID:KarlGong,项目名称:ptest-pycharm-plugin,代码行数:17,代码来源:PTestCommandLineState.java
示例3: showMavenToolWindow
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public void showMavenToolWindow() {
ConfigurationType configurationType = new JUnitConfigurationType();
ConfigurationFactory configurationFactory = new ConfigurationFactoryEx<JUnitConfiguration>(configurationType) {
@NotNull
@Override
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
return new JUnitConfiguration(project.getName(), project, this);
}
};
JUnitConfiguration configuration = new JUnitConfiguration(project.getName(), project, configurationFactory);
Executor executor = new DefaultRunExecutor();
ProcessHandler processHandler = new NopProcessHandler();
TestConsoleProperties consoleProperties = new MavenTestConsoleProperties(mavenProject, project, executor, configuration, processHandler);
BaseTestsOutputConsoleView consoleView;
try {
consoleView = SMTestRunnerConnectionUtil.createAndAttachConsole(TOOL_WINDOW_ID, processHandler, consoleProperties);
} catch (ExecutionException e) {
throw new RuntimeException(e);
}
showInToolWindow(consoleView, mavenProject.getFinalName());
processHandler.startNotify();
}
开发者ID:destin,项目名称:maven-test-support-plugin,代码行数:23,代码来源:MavenToolWindow.java
示例4: execute
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Nullable
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
final TestConsoleProperties testConsoleProperties =
new SMTRunnerConsoleProperties(jsTestDriverConfiguration, "jsTestDriver", executor);
final CountDownLatch receivingSocketOpen = new CountDownLatch(1);
Future<ProcessData> data = attachExecutor.submit(new Callable<ProcessData>() {
public ProcessData call() throws Exception {
// Let the receiver start before we write anything to it.
receivingSocketOpen.await();
ProcessHandler processHandler = startProcess();
BaseTestsOutputConsoleView consoleView =
attachRunner(project.getName(), processHandler, testConsoleProperties, getRunnerSettings(), getConfigurationSettings());
return new ProcessData((SMTRunnerConsoleView) consoleView, processHandler);
}
});
TestListenerContext context = new TestListenerContext(data);
final RemoteTestListener listener = new RemoteTestListener(context);
testResultReceiverExecutor.submit(
new RemoteTestResultReceiver(listener, testResultPort, receivingSocketOpen));
return new DefaultExecutionResult(context.consoleView(), context.processHandler(),
createActions(context.consoleView(), context.processHandler()));
}
开发者ID:BladeRunnerJS,项目名称:brjs-JsTestDriver,代码行数:23,代码来源:TestRunnerState.java
示例5: createConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public static ConsoleView createConsole(Project project, ProcessHandler processHandler, ExecutionEnvironment executionEnvironment, TesterTestLocator locationProvider) {
TesterRunConfiguration profile = (TesterRunConfiguration) executionEnvironment.getRunProfile();
TesterConsoleProperties properties = new TesterConsoleProperties(profile, executionEnvironment.getExecutor(), locationProvider);
properties.addStackTraceFilter(new XdebugCallStackFilter(project, locationProvider.getPathMapper()));
BaseTestsOutputConsoleView testsOutputConsoleView = SMTestRunnerConnectionUtil.createConsole("Nette Tester", properties);
testsOutputConsoleView.addMessageFilter(new TesterStackTraceFilter(project, locationProvider.getPathMapper()));
testsOutputConsoleView.attachToProcess(processHandler);
Disposer.register(project, testsOutputConsoleView);
return testsOutputConsoleView;
}
开发者ID:jiripudil,项目名称:intellij-nette-tester,代码行数:13,代码来源:TesterExecutionUtil.java
示例6: createConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@NotNull
public static BaseTestsOutputConsoleView createConsole(@NotNull String testFrameworkName,
@NotNull TestConsoleProperties consoleProperties) {
String splitterPropertyName = getSplitterPropertyName(testFrameworkName);
SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(consoleProperties, splitterPropertyName);
initConsoleView(consoleView, testFrameworkName);
return consoleView;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SMTestRunnerConnectionUtil.java
示例7: createAndAttachConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
/** @deprecated use {@link #createAndAttachConsole(String, ProcessHandler, TestConsoleProperties)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createAndAttachConsole(@NotNull String testFrameworkName,
@NotNull ProcessHandler processHandler,
@NotNull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment) throws ExecutionException {
BaseTestsOutputConsoleView console = createConsole(testFrameworkName, consoleProperties, environment);
console.attachToProcess(processHandler);
return console;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:SMTestRunnerConnectionUtil.java
示例8: createConsoleWithCustomLocator
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
/** @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@NotNull String testFrameworkName,
@NotNull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@Nullable TestLocationProvider locator) {
return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, false, null);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SMTestRunnerConnectionUtil.java
示例9: HyperlinkPrinter
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public HyperlinkPrinter(@NotNull BaseTestsOutputConsoleView testsOutputConsoleView,
@NotNull Condition<ConsoleViewContentType> contentTypeCondition,
@NotNull Filter filter) {
super(testsOutputConsoleView, testsOutputConsoleView.getProperties(), null);
myContentTypeCondition = contentTypeCondition;
myFilter = filter;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:TestProxyPrinterProvider.java
示例10: execute
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Nullable
@Override
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
final MyEmptyProcessHandler handler = new MyEmptyProcessHandler();
final SMTRunnerConsoleProperties properties = myRunProfile.getProperties();
RunProfile configuration;
final String frameworkName;
if (properties != null) {
configuration = properties.getConfiguration();
frameworkName = properties.getTestFrameworkName();
}
else {
configuration = myRunProfile;
frameworkName = "Import Test Results";
}
final ImportedTestConsoleProperties consoleProperties = new ImportedTestConsoleProperties(properties, myFile, handler, myRunProfile.getProject(),
configuration, frameworkName, executor);
final BaseTestsOutputConsoleView console = SMTestRunnerConnectionUtil.createConsole(consoleProperties.getTestFrameworkName(),
consoleProperties);
final JComponent component = console.getComponent();
AbstractRerunFailedTestsAction rerunFailedTestsAction = null;
if (component instanceof TestFrameworkRunningModel) {
rerunFailedTestsAction = consoleProperties.createRerunFailedTestsAction(console);
if (rerunFailedTestsAction != null) {
rerunFailedTestsAction.setModelProvider(new Getter<TestFrameworkRunningModel>() {
@Override
public TestFrameworkRunningModel get() {
return (TestFrameworkRunningModel)component;
}
});
}
}
console.attachToProcess(handler);
final DefaultExecutionResult result = new DefaultExecutionResult(console, handler);
if (rerunFailedTestsAction != null) {
result.setRestartActions(rerunFailedTestsAction);
}
return result;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:41,代码来源:ImportedTestRunnableState.java
示例11: createConsoleWithCustomLocator
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@NotNull final String testFrameworkName,
@NotNull final TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@Nullable final TestLocationProvider locator) {
return createConsoleWithCustomLocator(testFrameworkName,
consoleProperties,
environment,
new CompositeTestLocationProvider(locator),
false,
null);
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:SMTestRunnerConnectionUtil.java
示例12: useSmRunner
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
private ExecutionResult useSmRunner(Executor executor, JUnitProcessHandler handler) {
TestConsoleProperties testConsoleProperties = new SMTRunnerConsoleProperties(
new RuntimeConfigurationProducer.DelegatingRuntimeConfiguration<JUnitConfiguration>(
(JUnitConfiguration)myEnvironment.getRunProfile()),
JUNIT_TEST_FRAMEWORK_NAME,
executor
);
testConsoleProperties.setIfUndefined(TestConsoleProperties.HIDE_PASSED_TESTS, false);
BaseTestsOutputConsoleView smtConsoleView = SMTestRunnerConnectionUtil.createConsoleWithCustomLocator(
JUNIT_TEST_FRAMEWORK_NAME,
testConsoleProperties,
myEnvironment, null);
Disposer.register(myProject, smtConsoleView);
final ConsoleView consoleView = smtConsoleView;
consoleView.attachToProcess(handler);
final RerunFailedTestsAction rerunFailedTestsAction = new RerunFailedTestsAction(consoleView);
rerunFailedTestsAction.init(testConsoleProperties, myEnvironment);
rerunFailedTestsAction.setModelProvider(new Getter<TestFrameworkRunningModel>() {
@Override
public TestFrameworkRunningModel get() {
return ((SMTRunnerConsoleView)consoleView).getResultsViewer();
}
});
final DefaultExecutionResult result = new DefaultExecutionResult(consoleView, handler);
result.setRestartActions(rerunFailedTestsAction);
return result;
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:TestObject.java
示例13: createConsoleWithCustomLocator
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@Nonnull final String testFrameworkName,
@Nonnull final TestConsoleProperties consoleProperties,
@Nonnull ExecutionEnvironment environment,
@Nonnull ThriftTestHandlerFactory factory,
@javax.annotation.Nullable final TestLocationProvider locator) {
return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, factory, null);
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ThriftTestExecutionUtil.java
示例14: createConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Nonnull
public static BaseTestsOutputConsoleView createConsole(@Nonnull String testFrameworkName, @Nonnull TestConsoleProperties consoleProperties) {
String splitterPropertyName = getSplitterPropertyName(testFrameworkName);
SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(consoleProperties, splitterPropertyName);
initConsoleView(consoleView, testFrameworkName);
return consoleView;
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:SMTestRunnerConnectionUtil.java
示例15: createAndAttachConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
/**
* @deprecated use {@link #createAndAttachConsole(String, ProcessHandler, TestConsoleProperties)} (to be removed in IDEA 16)
*/
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createAndAttachConsole(@Nonnull String testFrameworkName,
@Nonnull ProcessHandler processHandler,
@Nonnull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment) throws ExecutionException {
BaseTestsOutputConsoleView console = createConsole(testFrameworkName, consoleProperties, environment);
console.attachToProcess(processHandler);
return console;
}
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:SMTestRunnerConnectionUtil.java
示例16: createConsoleWithCustomLocator
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
/**
* @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16)
*/
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@Nonnull String testFrameworkName,
@Nonnull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@javax.annotation.Nullable TestLocationProvider locator) {
return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, false, null);
}
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:SMTestRunnerConnectionUtil.java
示例17: HyperlinkPrinter
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public HyperlinkPrinter(@Nonnull BaseTestsOutputConsoleView testsOutputConsoleView,
@Nonnull Condition<ConsoleViewContentType> contentTypeCondition,
@Nonnull Filter filter) {
super(testsOutputConsoleView, testsOutputConsoleView.getProperties(), null);
myContentTypeCondition = contentTypeCondition;
myFilter = filter;
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:TestProxyPrinterProvider.java
示例18: execute
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
@Nullable
@Override
public ExecutionResult execute(Executor executor, @Nonnull ProgramRunner runner) throws ExecutionException {
final MyEmptyProcessHandler handler = new MyEmptyProcessHandler();
final SMTRunnerConsoleProperties properties = myRunProfile.getProperties();
RunProfile configuration;
final String frameworkName;
if (properties != null) {
configuration = properties.getConfiguration();
frameworkName = properties.getTestFrameworkName();
}
else {
configuration = myRunProfile;
frameworkName = "Import Test Results";
}
final ImportedTestConsoleProperties consoleProperties = new ImportedTestConsoleProperties(properties, myFile, handler, myRunProfile.getProject(),
configuration, frameworkName, executor);
final BaseTestsOutputConsoleView console = SMTestRunnerConnectionUtil.createConsole(consoleProperties.getTestFrameworkName(),
consoleProperties);
final JComponent component = console.getComponent();
AbstractRerunFailedTestsAction rerunFailedTestsAction = null;
if (component instanceof TestFrameworkRunningModel) {
rerunFailedTestsAction = consoleProperties.createRerunFailedTestsAction(console);
if (rerunFailedTestsAction != null) {
rerunFailedTestsAction.setModelProvider(new Getter<TestFrameworkRunningModel>() {
@Override
public TestFrameworkRunningModel get() {
return (TestFrameworkRunningModel)component;
}
});
}
}
console.attachToProcess(handler);
final DefaultExecutionResult result = new DefaultExecutionResult(console, handler);
if (rerunFailedTestsAction != null) {
result.setRestartActions(rerunFailedTestsAction);
}
return result;
}
开发者ID:consulo,项目名称:consulo,代码行数:41,代码来源:ImportedTestRunnableState.java
示例19: TestProxyPrinterProvider
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public TestProxyPrinterProvider(@NotNull BaseTestsOutputConsoleView testsOutputConsoleView,
@NotNull TestProxyFilterProvider filterProvider) {
myTestOutputConsoleView = testsOutputConsoleView;
myFilterProvider = filterProvider;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TestProxyPrinterProvider.java
示例20: createConsole
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView; //导入依赖的package包/类
public static BaseTestsOutputConsoleView createConsole(@NotNull final String testFrameworkName,
@NotNull final TestConsoleProperties consoleProperties,
ExecutionEnvironment environment) {
return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, null);
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:SMTestRunnerConnectionUtil.java
注:本文中的com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论