diff --git a/echosvg-test/build.gradle b/echosvg-test/build.gradle index ce2046f38..adc95a56d 100644 --- a/echosvg-test/build.gradle +++ b/echosvg-test/build.gradle @@ -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 diff --git a/echosvg-test/src/test/java/io/sf/carte/echosvg/apps/rasterizer/MainTest.java b/echosvg-test/src/test/java/io/sf/carte/echosvg/apps/rasterizer/MainTest.java index 92c1e90b0..faeef6ca8 100644 --- a/echosvg-test/src/test/java/io/sf/carte/echosvg/apps/rasterizer/MainTest.java +++ b/echosvg-test/src/test/java/io/sf/carte/echosvg/apps/rasterizer/MainTest.java @@ -33,6 +33,8 @@ import java.util.List; import java.util.StringTokenizer; +import org.junit.After; + import io.sf.carte.echosvg.test.TestLocations; /** @@ -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;