From 4dfa3b7004295da1637e6a7e328ccb84babb76d3 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 18 Jul 2011 21:05:55 +0200 Subject: There's now 1 test suite that runs all tests, and 'ant eclipse' will make a launch config that adds the appropriate -javaagent VM param to ensure the runWithEclipse tests work. --- .gitignore | 1 + build.xml | 13 +++++++++++++ buildScripts/eclipse-run-tests.template | 19 +++++++++++++++++++ .../src/lombok/bytecode/RunBytecodeTests.java | 10 ++++++++++ test/core/src/lombok/RunAllTests.java | 10 ++++++++++ .../src/lombok/transform/RunTransformTests.java | 10 ++++++++++ 6 files changed, 63 insertions(+) create mode 100644 buildScripts/eclipse-run-tests.template create mode 100644 test/bytecode/src/lombok/bytecode/RunBytecodeTests.java create mode 100644 test/core/src/lombok/RunAllTests.java create mode 100644 test/transform/src/lombok/transform/RunTransformTests.java diff --git a/.gitignore b/.gitignore index 5eae78c0..f9dd1e0a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ ivyCache google.properties debug LombokizedEclipse.launch +RunLombokTests.launch escudo-upload.key findbugsReport.html lib diff --git a/build.xml b/build.xml index 3edfeced..1cbcff35 100644 --- a/build.xml +++ b/build.xml @@ -223,6 +223,10 @@ the common tasks and can be called on to run the main aspects of all the sub-scr + + + + + + + + + diff --git a/buildScripts/eclipse-run-tests.template b/buildScripts/eclipse-run-tests.template new file mode 100644 index 00000000..4296d372 --- /dev/null +++ b/buildScripts/eclipse-run-tests.template @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/test/bytecode/src/lombok/bytecode/RunBytecodeTests.java b/test/bytecode/src/lombok/bytecode/RunBytecodeTests.java new file mode 100644 index 00000000..83602bbb --- /dev/null +++ b/test/bytecode/src/lombok/bytecode/RunBytecodeTests.java @@ -0,0 +1,10 @@ +package lombok.bytecode; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({TestClassFileMetaData.class}) +public class RunBytecodeTests { +} diff --git a/test/core/src/lombok/RunAllTests.java b/test/core/src/lombok/RunAllTests.java new file mode 100644 index 00000000..961eab65 --- /dev/null +++ b/test/core/src/lombok/RunAllTests.java @@ -0,0 +1,10 @@ +package lombok; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({lombok.transform.RunTransformTests.class, lombok.bytecode.RunBytecodeTests.class}) +public class RunAllTests { +} diff --git a/test/transform/src/lombok/transform/RunTransformTests.java b/test/transform/src/lombok/transform/RunTransformTests.java new file mode 100644 index 00000000..0149fae2 --- /dev/null +++ b/test/transform/src/lombok/transform/RunTransformTests.java @@ -0,0 +1,10 @@ +package lombok.transform; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({TestLombokFilesIdempotent.class, TestSourceFiles.class, TestWithDelombok.class, TestWithEcj.class, TestWithEclipse.class}) +public class RunTransformTests { +} -- cgit