m_groovyClass = loader.parseClass(script.getFile());
m_grinderRunner = new GrinderContextExecutor(m_groovyClass);
m_grinderRunner.runBeforeProcess();
assert m_grinderRunner.testCount() > 0;
} catch (IOException io) {
throw new EngineException("Unable to parse groovy script at: " + script.getFile().getAbsolutePath(), io);
} catch (InitializationError e) {
throw new EngineException("Error while initialize test runner", e);
} catch (Throwable e) {
throw new EngineException("Error while initialize test runner", e);
}
}