PyTestTestProcessRunner () { return new PyTestTestProcessRunner(TEST_TARGET_PREFIX + "test_test.test_test", 0) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); // Reset dir to check it is calculated correctly configuration.setWorkingDirectory(null); configureSrcFolder(myFixture); assertThat("Wrong configuration directory calculated", configuration.getWorkingDirectorySafe(), Matchers.endsWith("src")); } }; }