String classFilePath = TestAllAcceptanceTests.class.getResource("/"+packagePath).getFile();
return classFilePath.substring(0, classFilePath.length() - packagePath.length());
}
private static Test buildTestSuite(String name, String rootDir, final Class[] excludedTests) throws Exception {
return new DirectorySuiteBuilder(new SimpleTestFilter() {
public boolean include(String classpath) {
return classpath.endsWith("TestScript.class") && !isExcludedTest(classpath, excludedTests);
}
}).suite(name, rootDir);
}