Skip to content

Commit 4d66bc7

Browse files
Copilotbasilevs
andcommitted
Fix AGENTS.md: use 'mvn verify -pl :org.eclipse.swt.tests' for running specific tests
Agent-Logs-Url: https://github.com/basilevs/eclipse.platform.swt/sessions/b6e7df41-c662-4223-8f74-48bace109b78 Co-authored-by: basilevs <650857+basilevs@users.noreply.github.com>
1 parent 0c0c064 commit 4d66bc7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,13 @@ If needed, add packages to `Import-Package` or `Require-Bundle`.
9999
# Run all tests
100100
mvn clean verify
101101

102-
# Run specific test class
103-
mvn test -Dtest=ClassName
102+
# Run specific test class (requires prior `mvn install` to build dependencies)
103+
mvn verify -pl :THE_BUNDLE_WITH_THE_ACTUAL_TEST -Dtest=ClassName
104+
105+
# Run specific test class without prior `mvn install` (uses -am to build dependencies inline).
106+
# Note: in this project, Tycho's OSGi fragment resolution causes -am to also build all
107+
# binary fragment bundles. The extra flag suppresses surefire errors in those non-test bundles.
108+
mvn verify -pl :THE_BUNDLE_WITH_THE_ACTUAL_TEST -am -Dsurefire.failIfNoSpecifiedTests=false -Dtest=ClassName
104109
```
105110

106111
### Test Location

0 commit comments

Comments
 (0)