void () { runPythonTest(new PyProcessWithConsoleTestTask<PyDocTestProcessRunner>("/testRunner/env/doc", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyDocTestProcessRunner createProcessRunner() { return new PyDocTestProcessRunner("test1.py::SecondGoodTest::test_passes", 0); } @Override protected void checkTestResults(@NotNull final PyDocTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals(1, runner.getAllTestsCount()); assertEquals(1, runner.getPassedTestsCount()); } }); }