@Override
 protected void setUp() throws Exception {
   super.setUp();
   if (useExternalCompiler()) {
     CompilerTestUtil.enableExternalCompiler(myProject);
   }
 }
  @Override
  protected void tearDown() throws Exception {
    for (Artifact artifact : getArtifactManager().getArtifacts()) {
      final String outputPath = artifact.getOutputPath();
      if (!StringUtil.isEmpty(outputPath)) {
        FileUtil.delete(new File(FileUtil.toSystemDependentName(outputPath)));
      }
    }
    if (useExternalCompiler()) {
      CompilerTestUtil.disableExternalCompiler(myProject);
    }

    super.tearDown();
  }