use of com.perl5.lang.perl.idea.run.prove.PerlTestRunConfiguration in project Perl5-IDEA by Camelcade.
the class PerlDebuggerTest method testTestsDebugging.
@Test
public void testTestsDebugging() {
copyDirToModule("../run/testMore");
PerlTestRunConfiguration testRunConfiguration = createTestRunConfiguration("t/subtest_is_passed_named.t");
testRunConfiguration.setStartMode(PerlDebugOptionsSets.DEBUGGER_STARTUP_BREAKPOINT);
setBreakPoint(getModuleFile("t/subtest_is_passed_named.t"), 5);
Trinity<ExecutionEnvironment, RunContentDescriptor, XDebugSession> trinity = runConfigurationWithDebugger(testRunConfiguration);
XDebugSession debugSession = trinity.third;
assertStoppedAtLine(debugSession, 93);
debugSession.resume();
assertStoppedAtLine(debugSession, 5);
debugSession.resume();
ProcessHandler processHandler = trinity.second.getProcessHandler();
assertNotNull(processHandler);
waitForProcessFinish(processHandler);
checkTestRunResultsWithFile(trinity.second);
}
use of com.perl5.lang.perl.idea.run.prove.PerlTestRunConfiguration in project Perl5-IDEA by Camelcade.
the class PerlPlatformTestCase method createTestRunConfiguration.
@NotNull
protected PerlTestRunConfiguration createTestRunConfiguration(@NotNull String file) {
GenericPerlRunConfiguration runConfiguration = createOnlyRunConfiguration(file);
assertInstanceOf(runConfiguration, PerlTestRunConfiguration.class);
return (PerlTestRunConfiguration) runConfiguration;
}
Aggregations