file.delete();
}
@Test public void shouldRun_filteredTestInSuite() throws Exception {
String testUrl = getClass().getResource("/suites/suite-for-filtering.test").getFile();
GalenMain galen = new GalenMain();
final List<String> executedSuites = new LinkedList<String>();
CompleteListener listener = new DummyCompleteListener() {
@Override
public void onTestStarted(GalenTest test) {
executedSuites.add(test.getName());
}
};
galen.setListener(listener);
galen.execute(new GalenArguments()
.withAction("test")
.withPaths(asList(testUrl))
.withFilter("*with filter*")
);