eclipse-test
Skill171 starsChanged 3 months agoMITView on GitHub
Run JUnit tests in Eclipse projects — all tests, by package, by class, or individual test methods. Also build Maven projects.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- eclipse-analyzeSkill
- eclipse-debugSkill
- eclipse-editSkill
- eclipse-runSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Keep ordinary unit tests named *Test.java.
- Very specific: line 65
Run plain tests with runClassTests/runAllTests.
- Distinctive: line 66
Test results include pass/fail status, execution time, and failure traces
- Very specific: line 67
Use getCompilationErrors first to ensure code compiles before running tests
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Tests & Build in Eclipse
Execute JUnit tests and Maven builds using Eclipse's built-in infrastructure.
Test Tools
- runAllTests — Run all tests in a project. Provide
projectNameand optionaltimeout(default: 60s). - runPackageTests — Run tests in a specific package. Provide
projectNameandpackageName. - runClassTests — Run all tests in a specific test class. Provide
projectNameandclassName(fully qualified). - runTestMethod — Run a single test method. Provide
projectName,className, andmethodName. - findTestClasses — Find and classify tests as plain JUnit or PDE harness tests. PDE tests must use the
*PDETest.javanaming convention; likely harness-dependent misnamed tests are reported as warnings.
PDE Harness Tests
- runJUnitPluginTests — Run all plug-in tests in the PDE harness. Use for the classes listed under
PDE harness tests (*PDETest). - runJUnitPluginTestClass — Run one fully qualified
*PDETestclass. - runJUnitPluginTestClasses — Run a comma-separated set of fully qualified
*PDETestclasses in one PDE launch. Prefer it after a change touches several harness tests because Eclipse workbench startup is paid only once. The initial batch tool does not provide coverage; use the single-class or whole-project tools when coverage is required. - getActiveTarget / reloadTarget — Inspect or refresh the target platform when plug-in dependencies cannot resolve.
- Keep ordinary unit tests named
*Test.java; any test using Eclipse workspace, JDT, UI, platform, or OSGi runtime services must be named*PDETest.javaso discovery routes it to the PDE harness.
Build Tools
- runMavenBuild — Run Maven the way Run As > Maven build does. Provide
projectNameandgoalswritten exactly as aftermvn(e.g.,clean install -DskipTests -pl module); optionalprofiles,properties,pomDirectory,offline,skipTests, andtimeout(seconds to wait before an operationId is returned). The result carries the exit code, every[ERROR]line and the tail of the log; the full log is in the console namedlaunchName. - getEffectivePom — Get the effective POM for a Maven project.
- listMavenProjects — List all Maven projects in the workspace.
- getProjectDependencies — Get Maven dependencies for a project.
Typical Workflow
- Find test classes:
findTestClasses(projectName="myapp") - Run specific test after code change:
runClassTests(projectName="myapp", className="com.example.MyServiceTest", timeout="60") - Run all tests before committing:
runAllTests(projectName="myapp", timeout="120") - Build with Maven:
runMavenBuild(projectName="myapp", goals="clean verify -DskipTests", timeout="300") - Check build output:
getConsoleOutput()
Notes
- Tests run using JUnit 5 by default
- Run plain tests with
runClassTests/runAllTests; run*PDETestclasses with theeclipse-pdeharness tools - Test results include pass/fail status, execution time, and failure traces
- Use
getCompilationErrorsfirst to ensure code compiles before running tests - Maven build output goes to the Eclipse console — use
getConsoleOutputto retrieve it
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

