PyDocTestProcessRunner () { return new PyDocTestProcessRunner("subfolder", 0) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PythonDocTestRunConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setTestType(AbstractPythonLegacyTestRunConfiguration.TestType.TEST_FOLDER); configuration.setPattern("ABC123"); configuration.usePattern(false); } }; }