use of com.intellij.execution.junit.TestMethods in project intellij-community by JetBrains.
the class RerunFailedTestsAction method getRunProfile.
@Override
protected MyRunProfile getRunProfile(@NotNull ExecutionEnvironment environment) {
//noinspection ConstantConditions
final JUnitConfiguration configuration = (JUnitConfiguration) myConsoleProperties.getConfiguration();
final TestMethods testMethods = new TestMethods(configuration, environment, getFailedTests(configuration.getProject()));
return new MyRunProfile(configuration) {
@Override
@NotNull
public Module[] getModules() {
return testMethods.getModulesToCompile();
}
@Override
public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEnvironment env) {
testMethods.clear();
return testMethods;
}
};
}
Aggregations