use of com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties in project android by JetBrains.
the class AndroidTestAndJUnitConfigurationConflictsTest method testDoubleClickRedirection.
public void testDoubleClickRedirection() throws Exception {
String commonTestClassName = "google.testartifacts.ExampleTest";
loadProject(TEST_ARTIFACTS_SAME_NAME_CLASSES);
Executor executor = DefaultRunExecutor.getRunExecutorInstance();
RunConfiguration jUnitConfiguration = createJUnitConfigurationFromDirectory(getProject(), "app/src/test/java");
RunConfiguration androidTestRunConfiguration = createAndroidTestConfigurationFromDirectory(getProject(), "app/src/androidTest/java");
assertNotNull(jUnitConfiguration);
assertNotNull(androidTestRunConfiguration);
SMTRunnerConsoleProperties jUnitProperties = ((AndroidJUnitConfiguration) jUnitConfiguration).createTestConsoleProperties(executor);
SMTRunnerConsoleProperties androidTestProperties = new AndroidTestConsoleProperties(androidTestRunConfiguration, executor);
PsiClass[] jUnitClasses = JavaPsiFacade.getInstance(getProject()).findClasses(commonTestClassName, jUnitProperties.getScope());
PsiClass[] aTestClasses = JavaPsiFacade.getInstance(getProject()).findClasses(commonTestClassName, androidTestProperties.getScope());
assertSize(1, jUnitClasses);
assertSize(1, aTestClasses);
assertNotSame(jUnitClasses[0], aTestClasses[0]);
}
use of com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties in project intellij-elixir by KronicDeth.
the class MixExUnitRunningState method execute.
@NotNull
@Override
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
ProcessHandler processHandler = startProcess();
TestConsoleProperties properties = new SMTRunnerConsoleProperties(myConfiguration, TEST_FRAMEWORK_NAME, executor);
ConsoleView console = createAndAttachConsole(TEST_FRAMEWORK_NAME, processHandler, properties);
ElixirConsoleUtil.attachFilters(myConfiguration.getProject(), console);
return new DefaultExecutionResult(console, processHandler, createActions(console, processHandler));
}
Aggregations