PyTestTestProcessRunner () { 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]"); } }; }