Skip to content

Commit

Permalink
used @ignore to deactivate unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneszink committed Nov 19, 2014
1 parent 53744b3 commit 4fe58e0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import org.apache.maven.project.MavenProject;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.sonar.api.batch.fs.internal.DefaultFileSystem;
import org.sonar.api.config.Settings;
Expand All @@ -51,14 +52,16 @@ public void shouldGetReportsFromProperty() {
assertThat(SurefireUtils.getReportsDirectory(fileSystem, settings, null).isDirectory()).isTrue();
}

// @Test
@Ignore("caused test failures on release")
@Test
public void shouldGetReportsFromPluginConfiguration() {
MavenProject pom = MavenTestUtils.loadPom(getClass(), "shouldGetReportsFromPluginConfiguration/pom.xml");
assertThat(SurefireUtils.getReportsDirectory(fileSystem, settings, pom).exists()).isTrue();
assertThat(SurefireUtils.getReportsDirectory(fileSystem, settings, pom).isDirectory()).isTrue();
}

// @Test
@Ignore("caused test failures on release")
@Test
public void shouldGetReportsFromDefaultConfiguration() {
fileSystem.setBaseDir(new File("src/test/resources/surefire"));
File reportsDir = SurefireUtils.getReportsDirectory(fileSystem, settings, null);
Expand Down

0 comments on commit 4fe58e0

Please sign in to comment.