Skip to content

Commit

Permalink
Add Mojos to replace "The Eclipse Test Framework"
Browse files Browse the repository at this point in the history
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
laeubi committed Nov 19, 2023
1 parent f7d8923 commit de770ef
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
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

}

}
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 {

}
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 {

}

0 comments on commit de770ef

Please sign in to comment.