void () { runPythonTest( new PyProcessWithConsoleTestTask<PyTestTestProcessRunner>("/testRunner/env/pytest/parametrized", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyTestTestProcessRunner createProcessRunner() { return new PyTestTestProcessRunner("test_pytest_parametrized.py", 1) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.getTarget().setTarget("test_pytest_parametrized.test_eval"); configuration.getTarget().setTargetType(PyRunTargetVariant.PYTHON); if (isPyTestVersionAtLeast(configuration, "7.0.0")) { // Since 7.0.0 we need to provide argument for debug configuration.setAdditionalArguments("--debug log.txt"); } else { configuration.setAdditionalArguments("--debug"); } configuration.setMetaInfo("test_eval[three plus file-8]"); } }; } @Override protected void checkTestResults(@NotNull final PyTestTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals("Only one test should be launched", """ Test tree: [root](-) .test_pytest_parametrized(-) ..test_eval(-) ...(three plus file-8)(-) """, runner.getFormattedTestTree()); } }); }