本文整理汇总了Java中com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView类的典型用法代码示例。如果您正苦于以下问题:Java SMTRunnerConsoleView类的具体用法?Java SMTRunnerConsoleView怎么用?Java SMTRunnerConsoleView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SMTRunnerConsoleView类属于com.intellij.execution.testframework.sm.runner.ui包,在下文中一共展示了SMTRunnerConsoleView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: execute
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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: getConsoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public static SMTRunnerConsoleView getConsoleView(
Project project,
BlazeCommandRunConfiguration configuration,
Executor executor,
BlazeTestUiSession testUiSession) {
SMTRunnerConsoleProperties properties =
new BlazeTestConsoleProperties(configuration, executor, testUiSession);
SMTRunnerConsoleView console =
(SMTRunnerConsoleView)
SMTestRunnerConnectionUtil.createConsole(BLAZE_FRAMEWORK, properties);
Disposer.register(project, console);
console
.getResultsViewer()
.getTreeView()
.getSelectionModel()
.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
return console;
}
开发者ID:bazelbuild,项目名称:intellij,代码行数:19,代码来源:SmRunnerUtils.java
示例3: attachRerunFailedTestsAction
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public static DefaultExecutionResult attachRerunFailedTestsAction(DefaultExecutionResult result) {
ExecutionConsole console = result.getExecutionConsole();
if (!(console instanceof SMTRunnerConsoleView)) {
return result;
}
SMTRunnerConsoleView smConsole = (SMTRunnerConsoleView) console;
TestConsoleProperties consoleProperties = smConsole.getProperties();
if (!(consoleProperties instanceof BlazeTestConsoleProperties)) {
return result;
}
BlazeTestConsoleProperties properties = (BlazeTestConsoleProperties) consoleProperties;
AbstractRerunFailedTestsAction action = properties.createRerunFailedTestsAction(smConsole);
if (action != null) {
action.init(properties);
action.setModelProvider(smConsole::getResultsViewer);
result.setRestartActions(action);
}
return result;
}
开发者ID:bazelbuild,项目名称:intellij,代码行数:20,代码来源:SmRunnerUtils.java
示例4: execute
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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
示例5: execute
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
@NotNull
@Override
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
if (GaugeVersion.isGreaterOrEqual(GaugeRunConfiguration.TEST_RUNNER_SUPPORT_VERSION, false)
&& GaugeSettingsService.getSettings().useIntelliJTestRunner()) {
ProcessHandler handler = startProcess();
GaugeConsoleProperties properties = new GaugeConsoleProperties(config, "Gauge", executor, handler);
ConsoleView console = SMTestRunnerConnectionUtil.createAndAttachConsole("Gauge", handler, properties);
DefaultExecutionResult result = new DefaultExecutionResult(console, handler, createActions(console, handler));
if (ActionManager.getInstance().getAction("RerunFailedTests") != null) {
AbstractRerunFailedTestsAction action = properties.createRerunFailedTestsAction(console);
if (action != null) {
action.setModelProvider(((SMTRunnerConsoleView) console)::getResultsViewer);
result.setRestartActions(action);
}
}
return result;
}
return super.execute(executor, runner);
}
开发者ID:getgauge,项目名称:Intellij-Plugin,代码行数:21,代码来源:GaugeCommandLineState.java
示例6: execute
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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
示例7: initConsoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public static void initConsoleView(@Nonnull final SMTRunnerConsoleView consoleView,
@Nonnull final String testFrameworkName,
@javax.annotation.Nullable final TestLocationProvider locator,
final ThriftTestHandlerFactory factory,
@javax.annotation.Nullable final TestProxyFilterProvider filterProvider) {
consoleView.addAttachToProcessListener(new AttachToProcessListener() {
@Override
public void onAttachToProcess(@Nonnull ProcessHandler processHandler) {
TestProxyPrinterProvider printerProvider = null;
if (filterProvider != null) {
printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
}
SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
attachEventsProcessors(consoleView.getProperties(), resultsForm, resultsForm.getStatisticsPane(), processHandler, testFrameworkName, locator, factory,
printerProvider);
}
});
consoleView.setHelpId("reference.runToolWindow.testResultsTab");
consoleView.initUI();
}
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:ThriftTestExecutionUtil.java
示例8: initConsoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
/**
* @deprecated use {@link #initConsoleView(SMTRunnerConsoleView, String)} (to be removed in IDEA 16)
*/
@SuppressWarnings({"unused", "deprecation"})
public static void initConsoleView(@Nonnull final SMTRunnerConsoleView consoleView,
@Nonnull final String testFrameworkName,
@Nullable final TestLocationProvider locator,
final boolean idBasedTreeConstruction,
@javax.annotation.Nullable final TestProxyFilterProvider filterProvider) {
consoleView.addAttachToProcessListener(new AttachToProcessListener() {
@Override
public void onAttachToProcess(@Nonnull ProcessHandler processHandler) {
TestConsoleProperties properties = consoleView.getProperties();
SMTestLocator testLocator = new CompositeTestLocationProvider(locator);
TestProxyPrinterProvider printerProvider = null;
if (filterProvider != null) {
printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
}
SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
attachEventsProcessors(properties, resultsForm, resultsForm.getStatisticsPane(), processHandler, testFrameworkName, testLocator, idBasedTreeConstruction, printerProvider);
}
});
consoleView.setHelpId("reference.runToolWindow.testResultsTab");
consoleView.initUI();
}
开发者ID:consulo,项目名称:consulo,代码行数:29,代码来源:SMTestRunnerConnectionUtil.java
示例9: createConsole
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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
示例10: createConsoleWithCustomLocator
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
/** @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static SMTRunnerConsoleView createConsoleWithCustomLocator(@NotNull String testFrameworkName,
@NotNull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@Nullable TestLocationProvider locator,
boolean idBasedTreeConstruction,
@Nullable TestProxyFilterProvider filterProvider) {
String splitterPropertyName = getSplitterPropertyName(testFrameworkName);
SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(consoleProperties, splitterPropertyName);
initConsoleView(consoleView, testFrameworkName, locator, idBasedTreeConstruction, filterProvider);
return consoleView;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:SMTestRunnerConnectionUtil.java
示例11: initConsoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
/** @deprecated use {@link #initConsoleView(SMTRunnerConsoleView, String)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static void initConsoleView(@NotNull final SMTRunnerConsoleView consoleView,
@NotNull final String testFrameworkName,
@Nullable final TestLocationProvider locator,
final boolean idBasedTreeConstruction,
@Nullable final TestProxyFilterProvider filterProvider) {
consoleView.addAttachToProcessListener(new AttachToProcessListener() {
@Override
public void onAttachToProcess(@NotNull ProcessHandler processHandler) {
TestConsoleProperties properties = consoleView.getProperties();
SMTestLocator testLocator = new CompositeTestLocationProvider(locator);
TestProxyPrinterProvider printerProvider = null;
if (filterProvider != null) {
printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
}
SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
attachEventsProcessors(properties,
resultsForm,
resultsForm.getStatisticsPane(),
processHandler,
testFrameworkName,
testLocator,
idBasedTreeConstruction,
printerProvider);
}
});
consoleView.setHelpId("reference.runToolWindow.testResultsTab");
consoleView.initUI();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:34,代码来源:SMTestRunnerConnectionUtil.java
示例12: attachExecutionConsole
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
@NotNull
@Override
public ExecutionConsole attachExecutionConsole(@NotNull final ExternalSystemTask task,
@NotNull final Project project,
@NotNull final ExternalSystemRunConfiguration configuration,
@NotNull final Executor executor,
@NotNull final ExecutionEnvironment env,
@NotNull final ProcessHandler processHandler) throws ExecutionException {
final GradleConsoleProperties properties = new GradleConsoleProperties(configuration, executor);
myExecutionConsole = (SMTRunnerConsoleView)SMTestRunnerConnectionUtil.createAndAttachConsole(
configuration.getSettings().getExternalSystemId().getReadableName(), processHandler, properties);
TestTreeRenderer originalRenderer =
ObjectUtils.tryCast(myExecutionConsole.getResultsViewer().getTreeView().getCellRenderer(), TestTreeRenderer.class);
if (originalRenderer != null) {
originalRenderer.setAdditionalRootFormatter(new SMRootTestProxyFormatter() {
@Override
public void format(@NotNull SMTestProxy.SMRootTestProxy testProxy, @NotNull TestTreeRenderer renderer) {
final TestStateInfo.Magnitude magnitude = testProxy.getMagnitudeInfo();
if (magnitude == TestStateInfo.Magnitude.RUNNING_INDEX) {
renderer.clear();
renderer.append(GradleBundle.message(
"gradle.test.runner.ui.tests.tree.presentation.labels.waiting.tests"),
SimpleTextAttributes.REGULAR_ATTRIBUTES
);
}
else if (!testProxy.isInProgress() && testProxy.isEmptySuite()) {
renderer.clear();
renderer.append(GradleBundle.message(
"gradle.test.runner.ui.tests.tree.presentation.labels.no.tests.were.found"),
SimpleTextAttributes.REGULAR_ATTRIBUTES
);
}
}
});
}
return myExecutionConsole;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:39,代码来源:GradleTestsExecutionConsoleManager.java
示例13: useSmRunner
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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
示例14: createConsoleWithCustomLocator
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public static SMTRunnerConsoleView createConsoleWithCustomLocator(@Nonnull final String testFrameworkName,
@Nonnull final TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@javax.annotation.Nullable final TestLocationProvider locator,
final ThriftTestHandlerFactory factory,
@javax.annotation.Nullable final TestProxyFilterProvider filterProvider) {
String splitterPropertyName = SMTestRunnerConnectionUtil.getSplitterPropertyName(testFrameworkName);
SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(consoleProperties, splitterPropertyName);
initConsoleView(consoleView, testFrameworkName, locator, factory, filterProvider);
return consoleView;
}
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:ThriftTestExecutionUtil.java
示例15: createConsole
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的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
示例16: createConsoleWithCustomLocator
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
/**
* @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16)
*/
@SuppressWarnings({"unused", "deprecation"})
public static SMTRunnerConsoleView createConsoleWithCustomLocator(@Nonnull String testFrameworkName,
@Nonnull TestConsoleProperties consoleProperties,
ExecutionEnvironment environment,
@javax.annotation.Nullable TestLocationProvider locator,
boolean idBasedTreeConstruction,
@Nullable TestProxyFilterProvider filterProvider) {
String splitterPropertyName = getSplitterPropertyName(testFrameworkName);
SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(consoleProperties, splitterPropertyName);
initConsoleView(consoleView, testFrameworkName, locator, idBasedTreeConstruction, filterProvider);
return consoleView;
}
开发者ID:consulo,项目名称:consulo,代码行数:16,代码来源:SMTestRunnerConnectionUtil.java
示例17: runConfiguration
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
/**
* Run configuration.
*
* @param settings settings (if have any, null otherwise)
* @param config configuration to run
* @throws Exception
*/
protected void runConfiguration(@Nullable final RunnerAndConfigurationSettings settings,
@NotNull final RunConfiguration config) throws Exception {
final ExecutionEnvironment environment;
if (settings == null) {
environment = ExecutionEnvironmentBuilder.create(DefaultRunExecutor.getRunExecutorInstance(), config).build();
}
else {
environment = ExecutionEnvironmentBuilder.create(DefaultRunExecutor.getRunExecutorInstance(), settings).build();
}
//noinspection ConstantConditions
Assert.assertTrue(environment.getRunner().canRun(DefaultRunExecutor.EXECUTOR_ID, config));
before();
final com.intellij.util.concurrency.Semaphore s = new com.intellij.util.concurrency.Semaphore();
s.down();
myOutput = new StringBuilder();
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
@Override
public void run() {
try {
environment.getRunner().execute(environment, new ProgramRunner.Callback() {
@Override
public void processStarted(RunContentDescriptor descriptor) {
myDescriptor = descriptor;
myProcessHandler = myDescriptor.getProcessHandler();
myProcessHandler.addProcessListener(new ProcessAdapter() {
@Override
public void onTextAvailable(ProcessEvent event, Key outputType) {
myOutput.append(event.getText());
}
});
myConsoleView = (SMTRunnerConsoleView)descriptor.getExecutionConsole();
myTestProxy = myConsoleView.getResultsViewer().getTestsRootNode();
myConsoleView.getResultsViewer().addEventsListener(new TestResultsViewer.SMEventsAdapter() {
@Override
public void onTestingFinished(TestResultsViewer sender) {
s.up();
}
});
}
});
}
catch (Exception e) {
throw new RuntimeException(e);
}
}
});
Assert.assertTrue(s.waitFor(getTestTimeout()));
XDebuggerTestUtil.waitForSwing();
assertFinished();
Assert.assertTrue(output(), allTestsCount() > 0);
after();
disposeProcess(myProcessHandler);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:73,代码来源:PyUnitTestTask.java
示例18: getExecutionConsole
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public SMTRunnerConsoleView getExecutionConsole() {
return myExecutionConsole;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:GradleTestsExecutionConsoleManager.java
示例19: execute
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
@Nullable
@Override
@RequiredDispatchThread
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException
{
Unity3dTestConfiguration profile = (Unity3dTestConfiguration) myEnvironment.getRunProfile();
TestConsoleProperties testConsoleProperties = new SMTRunnerConsoleProperties(profile, TEST_FRAMEWORK_NAME, executor);
testConsoleProperties.setIfUndefined(TestConsoleProperties.HIDE_PASSED_TESTS, false);
String splitterPropertyName = SMTestRunnerConnectionUtil.getSplitterPropertyName(TEST_FRAMEWORK_NAME);
final SMTRunnerConsoleView consoleView = new SMTRunnerConsoleView(testConsoleProperties, splitterPropertyName);
final Ref<UUID> ref = Ref.create();
consoleView.addAttachToProcessListener(new AttachToProcessListener()
{
@Override
public void onAttachToProcess(@NotNull ProcessHandler processHandler)
{
SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
ref.set(attachEventsProcessors(consoleView.getProperties(), resultsForm, resultsForm.getStatisticsPane(), processHandler, TEST_FRAMEWORK_NAME));
}
});
consoleView.setHelpId("reference.runToolWindow.testResultsTab");
consoleView.initUI();
final ProcessHandler osProcessHandler = new DefaultDebugProcessHandler();
consoleView.attachToProcess(osProcessHandler);
UnityRunTest runTest = new UnityRunTest();
runTest.uuid = ref.get().toString();
runTest.type = "";
if(!UnityEditorCommunication.request(profile.getProject(), runTest, true))
{
ApplicationManager.getApplication().executeOnPooledThread(new Runnable()
{
@Override
public void run()
{
osProcessHandler.notifyTextAvailable("UnityEditor dont received request, maybe is not run", ProcessOutputTypes.STDERR);
osProcessHandler.destroyProcess();
}
});
}
return new DefaultExecutionResult(consoleView, osProcessHandler);
}
开发者ID:consulo,项目名称:consulo-unity3d,代码行数:54,代码来源:Unity3dTestRunState.java
示例20: consoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView; //导入依赖的package包/类
public SMTRunnerConsoleView consoleView() {
return getData().consoleView;
}
开发者ID:BladeRunnerJS,项目名称:brjs-JsTestDriver,代码行数:4,代码来源:TestListenerContext.java
注:本文中的com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论