PyUnitTestProcessRunner () { return new PyUnitTestProcessRunner("", 0) { @Override protected void configurationCreatedAndWillLaunch(@NotNull final PyUnitTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.getTarget().setTargetType(PyRunTargetVariant.PYTHON); configuration.getTarget().setTarget("mymodule.ExampleModuleTestCase"); } }; }