当前位置: 首页>>代码示例>>Java>>正文


Java AbstractRerunFailedTestsAction类代码示例

本文整理汇总了Java中com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction的典型用法代码示例。如果您正苦于以下问题:Java AbstractRerunFailedTestsAction类的具体用法?Java AbstractRerunFailedTestsAction怎么用?Java AbstractRerunFailedTestsAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AbstractRerunFailedTestsAction类属于com.intellij.execution.testframework.actions包,在下文中一共展示了AbstractRerunFailedTestsAction类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: attachRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的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

示例2: execute

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的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

示例3: execute

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的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

示例4: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Nullable
@Override
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return BlazeTestEventsHandler.getHandlerForTarget(
          runConfiguration.getProject(), runConfiguration.getTarget())
      .map(handler -> handler.createRerunFailedTestsAction(consoleView))
      .orElse(null);
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:9,代码来源:BlazeTestConsoleProperties.java

示例5: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Nullable
@Override
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
    GaugeRerunFailedAction action = new GaugeRerunFailedAction(consoleView);
    action.init(this);
    return action;
}
 
开发者ID:getgauge,项目名称:Intellij-Plugin,代码行数:8,代码来源:GaugeConsoleProperties.java

示例6: execute

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的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

示例7: testOnTestIgnored

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
public void testOnTestIgnored() {
  onTestStarted("some_test");
  myEventsProcessor.onTestIgnored(new TestIgnoredEvent("some_test", "", null));

  final String fullName = myEventsProcessor.getFullTestName("some_test");
  final SMTestProxy proxy = myEventsProcessor.getProxyByFullTestName(fullName);

  assertNotNull(proxy);
  assertTrue(proxy.isDefect());
  assertFalse(proxy.isInProgress());

  final Filter filter = AbstractRerunFailedTestsAction.getFailuresFilter(myConsole.getProperties());
  assertFalse(filter.shouldAccept(proxy));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:GeneralToSMTRunnerEventsConvertorTest.java

示例8: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Nullable
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:SMTRunnerConsoleProperties.java

示例9: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Override
@Nullable
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return myProperties == null ? null : myProperties.createRerunFailedTestsAction(consoleView);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ImportedTestConsoleProperties.java

示例10: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Nullable
@Override
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return new RerunFailedTestsAction(consoleView, this);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TestNGConsoleProperties.java

示例11: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
/** Returns {@code null} if this test events handler doesn't support test filtering. */
@Nullable
default AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return new BlazeRerunFailedTestsAction(this, consoleView);
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:6,代码来源:BlazeTestEventsHandler.java

示例12: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Nullable
@Override
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return null;
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:6,代码来源:BlazeGenericTestEventsHandler.java

示例13: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@javax.annotation.Nullable
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return null;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:SMTRunnerConsoleProperties.java

示例14: createRerunFailedTestsAction

import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; //导入依赖的package包/类
@Override
@javax.annotation.Nullable
public AbstractRerunFailedTestsAction createRerunFailedTestsAction(ConsoleView consoleView) {
  return myProperties == null ? null : myProperties.createRerunFailedTestsAction(consoleView);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:ImportedTestConsoleProperties.java


注:本文中的com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。