-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Mojos to replace "The Eclipse Test Framework"
The Eclipse Test Framework is a way to specifically run a test inside an eclipse installation itself against a prebuild SDK. This implements the framework on top of maven to make it much easier to run and setup than with the several (ant) prerequsites of the original description provided here: - https://wiki.eclipse.org/Platform-releng/Eclipse_Test_Framework#Headless_Testing_vs._UI_testing - https://wiki.eclipse.org/Platform-releng/Automated_Testing as well as offer much more flexibility e.g. to run tests in a local mode where not the SDK but a local build is used as the test base.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...o-eclipse-plugin/src/main/java/org/eclipse/tycho/eclipsetest/AbstractEclipseTestMojo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.eclipse.tycho.eclipsetest; | ||
|
||
import org.apache.maven.plugin.AbstractMojo; | ||
import org.apache.maven.plugin.MojoExecutionException; | ||
import org.apache.maven.plugin.MojoFailureException; | ||
|
||
public class AbstractEclipseTestMojo extends AbstractMojo { | ||
|
||
@Override | ||
public void execute() throws MojoExecutionException, MojoFailureException { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
tycho-eclipse-plugin/src/main/java/org/eclipse/tycho/eclipsetest/EclipseCoreTestMojo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.eclipse.tycho.eclipsetest; | ||
|
||
import org.apache.maven.plugins.annotations.LifecyclePhase; | ||
import org.apache.maven.plugins.annotations.Mojo; | ||
import org.apache.maven.plugins.annotations.ResolutionScope; | ||
|
||
/** | ||
* This Mojo provides the <a href= | ||
* "https://wiki.eclipse.org/Platform-releng/Eclipse_Test_Framework">Eclipse | ||
* Test Framework</a> to maven and is a replacement for the <a href= | ||
* "https://wiki.eclipse.org/Platform-releng/Eclipse_Test_Framework#Headless_Testing_vs._UI_testing"><code>core-test</code></a> | ||
* ant target. | ||
*/ | ||
@Mojo(name = "eclipse-core-test", defaultPhase = LifecyclePhase.INTEGRATION_TEST, threadSafe = true, requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME) | ||
public class EclipseCoreTestMojo extends AbstractEclipseTestMojo { | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
tycho-eclipse-plugin/src/main/java/org/eclipse/tycho/eclipsetest/EclipseUITestMojo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.eclipse.tycho.eclipsetest; | ||
|
||
import org.apache.maven.plugins.annotations.LifecyclePhase; | ||
import org.apache.maven.plugins.annotations.Mojo; | ||
import org.apache.maven.plugins.annotations.ResolutionScope; | ||
|
||
/** | ||
* This Mojo provides the <a href= | ||
* "https://wiki.eclipse.org/Platform-releng/Eclipse_Test_Framework">Eclipse | ||
* Test Framework</a> to maven and is a replacement for the <a href= | ||
* "https://wiki.eclipse.org/Platform-releng/Eclipse_Test_Framework#Headless_Testing_vs._UI_testing"><code>ui-test</code></a> | ||
* ant target. | ||
*/ | ||
@Mojo(name = "eclipse-ui-test", defaultPhase = LifecyclePhase.INTEGRATION_TEST, threadSafe = true, requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME) | ||
public class EclipseUITestMojo extends AbstractEclipseTestMojo { | ||
|
||
} |