diff --git a/pom.xml b/pom.xml
index 4eb6a51b4..959cb691c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,9 +62,6 @@
2.19
-Xmx1024m
-
- **/Tests.java
-
diff --git a/src/test/java/dk/camelot64/kickc/test/TestFragments.java b/src/test/java/dk/camelot64/kickc/test/TestFragments.java
index 06ee532c6..85325e22d 100644
--- a/src/test/java/dk/camelot64/kickc/test/TestFragments.java
+++ b/src/test/java/dk/camelot64/kickc/test/TestFragments.java
@@ -6,6 +6,7 @@ import dk.camelot64.kickc.fragment.AsmFragmentTemplateSynthesizer;
import dk.camelot64.kickc.fragment.AsmFragmentTemplateUsages;
import dk.camelot64.kickc.model.Operator;
import org.junit.AfterClass;
+import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
@@ -17,6 +18,11 @@ import static junit.framework.TestCase.fail;
/** Test the ASM fragment sub-system by loading/synthesizing a lot of different fragments and comparing with reference fragments. */
public class TestFragments {
+ @BeforeClass
+ public static void setUp() {
+ AsmFragmentTemplateSynthesizer.clearCaches();
+ }
+
@AfterClass
public static void tearDown() throws Exception {
CompileLog log = new CompileLog();
diff --git a/src/test/java/dk/camelot64/kickc/test/Tests.java b/src/test/java/dk/camelot64/kickc/test/Tests.java
deleted file mode 100644
index 0b51f9ae5..000000000
--- a/src/test/java/dk/camelot64/kickc/test/Tests.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package dk.camelot64.kickc.test;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
- TestFragments.class,
- TestPrograms.class
-})
-
-public class Tests {
-}