Skip to content

Commit 81b3915

Browse files
Copilotbasilevs
authored andcommitted
Fix AGENTS.md: use 'mvn verify -pl :org.eclipse.swt.tests' for running
specific tests Prevent the procedure from failing on MacOS and Linux which have no platform specific tests, requiring `surefire.failIfNoSpecifiedTests=false`. Agent-Logs-Url: https://github.com/basilevs/eclipse.platform.swt/sessions/b6e7df41-c662-4223-8f74-48bace109b78
1 parent 17667a8 commit 81b3915

2 files changed

Lines changed: 8 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.
108+
mvn verify -pl :THE_BUNDLE_WITH_THE_ACTUAL_TEST -am -Dtest=ClassName
104109
```
105110

106111
### Test Location

binaries/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<buildid>${buildId}</buildid>
3030
<maven.compiler.release>21</maven.compiler.release>
3131
<swtMainProject>${project.basedir}/../../bundles/org.eclipse.swt</swtMainProject>
32+
<surefire.failIfNoSpecifiedTests>false</surefire.failIfNoSpecifiedTests>
3233
</properties>
3334

3435
<modules>

0 commit comments

Comments
 (0)