Skip to content

Explicitly refresh and rebuild test project after .classpath change#261

Merged
adangel merged 1 commit intopmd:mainfrom
adangel:project-classpath-test
Mar 20, 2025
Merged

Explicitly refresh and rebuild test project after .classpath change#261
adangel merged 1 commit intopmd:mainfrom
adangel:project-classpath-test

Conversation

@adangel
Copy link
Copy Markdown
Member

@adangel adangel commented Mar 6, 2025

This hopefully fixes spurious test failures, like this one:

ProjectPropertiesModelTest.testProjectClasspath:584 Found these URIs: [file:/usr/lib/jvm/temurin-21-jdk-amd64/lib/jrt-fs.jar, file:/home/runner/work/pmd-eclipse-plugin/pmd-eclipse-plugin/net.sourceforge.pmd.eclipse.plugin.test/target/work/data/ProjectPropertiesModelTest/bin/] expected: 6 but was: 2

E.g. happened in https://github.com/pmd/pmd-eclipse-plugin/actions/runs/13601379628
and in https://github.com/pmd/pmd-eclipse-plugin/actions/runs/13753871134/job/38458276451?pr=262

This hopefully fixes spurious test failures, like this one:

ProjectPropertiesModelTest.testProjectClasspath:584 Found these URIs:
[file:/usr/lib/jvm/temurin-21-jdk-amd64/lib/jrt-fs.jar,
file:/home/runner/work/pmd-eclipse-plugin/pmd-eclipse-plugin/net.sourceforge.pmd.eclipse.plugin.test/target/work/data/ProjectPropertiesModelTest/bin/]
expected: 6 but was: 2
@adangel adangel added this to the 7.12.0 milestone Mar 6, 2025
adangel added a commit that referenced this pull request Mar 20, 2025
adangel added a commit that referenced this pull request Mar 20, 2025
…261)

Merge pull request #261 from adangel:project-classpath-test
@adangel adangel merged commit ed31e0b into pmd:main Mar 20, 2025
6 checks passed
@adangel adangel deleted the project-classpath-test branch March 20, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant