PyUnitTestProcessRunner () { // Full pass is required because it is folder return new PyUnitTestProcessRunner(toFullPath(getMyScriptName()), 2) { @Override protected void configurationCreatedAndWillLaunch(@NotNull final PyUnitTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setPattern("test*"); } }; }