void () { runPythonTest(new PyProcessWithConsoleTestTask<PyNoseTestProcessRunner>("/testRunner/env/nose", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyNoseTestProcessRunner createProcessRunner() { return new PyNoseTestProcessRunner("test2.py", 0); } @Override protected void checkTestResults(@NotNull final PyNoseTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals(8, runner.getAllTestsCount()); assertEquals(5, runner.getPassedTestsCount()); assertEquals(3, runner.getFailedTestsCount()); } }); }