// has finished, but the JUnit Runner SPI doesn't provide an adequate hook.
// That said, since most environments fork a new JVM for each test run,
// this shouldn't be much of a problem in practice.
private static RunContext createBottomContext() {
File spockUserHome = new File(env("spock.user.home", "SPOCK_USER_HOME", System.getProperty("user.home") + "/.spock"));
DelegatingScript script = new ConfigurationScriptLoader(spockUserHome).loadAutoDetectedScript();
List<Class<?>> classes = new ExtensionClassesLoader().loadClassesFromDefaultLocation();
return new RunContext("default", spockUserHome, script, classes);
}