mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
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.
This commit is contained in:
1 parent
83e2fb5e00
commit
4dfa3b7004
6 files changed
+63
No files matched your search
@@ -5,6 +5,7 @@ ivyCache
|
||||
google.properties
|
||||
debug
|
||||
LombokizedEclipse.launch
|
||||
RunLombokTests.launch
|
||||
escudo-upload.key
|
||||
findbugsReport.html
|
||||
lib
|
||||
|
||||
@@ -223,6 +223,10 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
<os family="mac" />
|
||||
</condition>
|
||||
|
||||
<condition property="putJavacOnBootclasspath" value="-Xbootclasspath/p:lib/test/javac.jar" else="">
|
||||
<os family="mac" />
|
||||
</condition>
|
||||
|
||||
<copy
|
||||
file="buildScripts/eclipse-debug-target.template"
|
||||
tofile="LombokizedEclipse.launch"
|
||||
@@ -232,6 +236,15 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
<filter token="START_ON_FIRST_THREAD" value="${startOnFirstThread}" />
|
||||
</filterset>
|
||||
</copy>
|
||||
<copy
|
||||
file="buildScripts/eclipse-run-tests.template"
|
||||
tofile="RunLombokTests.launch"
|
||||
preservelastmodified="true"
|
||||
overwrite="true">
|
||||
<filterset>
|
||||
<filter token="JAVAC_ON_BOOTCLASSPATH" value="${putJavacOnBootclasspath}" />
|
||||
</filterset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="-test-compile" depends="ensureTestDeps, compile" unless="skipTests">
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/lombok/test/core/src/lombok/RunAllTests.java"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="1"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
|
||||
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
|
||||
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
|
||||
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="lombok.RunAllTests"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="lombok"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-javaagent:dist/lombok.jar @JAVAC_ON_BOOTCLASSPATH@"/>
|
||||
</launchConfiguration>
|
||||
@@ -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 {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
Reference in new issue
Block a user