void () { final String fileName = "reference_tests.py"; runPythonTest(new PyUnitTestLikeProcessWithConsoleTestTask<>("/testRunner/env/unit", fileName, this::createTestRunner) { @Override protected void checkTestResults(@NotNull final T runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { final List<String> fileNames = runner.getHighlightedStringsInConsole().getSecond(); Assert.assertTrue(String.format("Not enough highlighted entries(%s) in the following output: %s", StringUtil.join(fileNames, ","), runner.getAllConsoleText()), fileNames.size() >= 3); // UnitTest highlights file name Assert.assertThat("Bad line highlighted", fileNames, hasItem(endsWith(fileName))); } }); }