Skip to content

Commit

Permalink
Tests: exclude problematic tests from being run with Gradle.
Browse files Browse the repository at this point in the history
Issue #19.
  • Loading branch information
carlosame committed May 14, 2021
1 parent 819d596 commit 4099871
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion echosvg-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ publishing.publications.maven(MavenPublication).pom {
description = "EchoSVG Test Suite"
}

test.enabled = false
test {
exclude 'io/sf/carte/echosvg/apps/rasterizer/MainTest.class'
exclude 'io/sf/carte/echosvg/bridge/*LoadTest.class'
}

// Some tests do not work when the classes are in a testJar
// And the main jar is empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import java.util.List;
import java.util.StringTokenizer;

import org.junit.After;

import io.sf.carte.echosvg.test.TestLocations;

/**
Expand All @@ -44,9 +46,13 @@
*/
public class MainTest {

// This test writes/flushes to System.out and this may interfere with Gradle
@After
public void tearDown() {
System.setSecurityManager(null);
}

// This test interferes with Gradle
// Run it from IDE only
@org.junit.Ignore
@org.junit.Test
public void testMain() {
URL url;
Expand Down

0 comments on commit 4099871

Please sign in to comment.