package jetbrains.mps.baseLanguage.unitTest.execution.server;
/*Generated by MPS */
import jetbrains.mps.util.test.CachesUtil;
public class CachingTestExecutor extends DefaultTestExecutor {
public CachingTestExecutor(String[] args) {
super(args);
}
@Override
public void init() {
CachesUtil.setupCaches();
super.init();
}
/**
* Called when ITestCase is executed (except for BTestCase)
*/
public static void main(String[] args) {
CachingTestExecutor executor = new CachingTestExecutor(args);
try {
executor.run();
} catch (Throwable t) {
executor.processThrowable(t);
}
executor.exit();
}
@Override
protected void processThrowable(Throwable t) {
CachesUtil.cleanupCaches();
super.processThrowable(t);
}
}