void () { runPythonTest(new MyPyProcessWithConsoleTestTask("/toxtest/toxPyTestXDist/", 1, () -> new MyTestProcessRunner(), Arrays.asList( Pair.create("py38", new InterpreterExpectations("", false)), Pair.create("py37", new InterpreterExpectations("", true)) ), Integer.MAX_VALUE) { @Override protected void checkTestResults(@NotNull MyTestProcessRunner runner, @NotNull String stdout, @NotNull String stderr, @NotNull String all, int exitCode) { super.checkTestResults(runner, stdout, stderr, all, exitCode); Assert.assertEquals(5, runner.getPassedTestsCount()); Assert.assertEquals(1, runner.getFailedTestsCount()); runner.getFormattedTestTree(); } } ); }