Skip to content

[core] test: cover pmd analysis configuration - #6829

Merged
UncleOwen merged 2 commits into
pmd:mainfrom
amirdeljouyi:pr-tests-pmdanalysis
Jul 8, 2026
Merged

UncleOwen merged 2 commits into
pmd:mainfrom
amirdeljouyi:pr-tests-pmdanalysis

Conversation

@amirdeljouyi

Copy link
Copy Markdown
Contributor

Describe the PR

Hi,

I added focused PmdAnalysisTest coverage around configuration setup in PmdAnalysis.create. It checks that the renderer, relativized source root, and language property bundle from the configuration are picked up correctly.

The newly covered PmdAnalysis lines are PmdAnalysis.java:196-197, PmdAnalysis.java:225-226, and
PmdAnalysis.java:342-343.

Line coverage increases by around 4%.

Related issues

  • None; this is a test-only change.

Ready?

  • Added unit tests
  • Passing targeted unit tests
  • Complete build ./mvnw clean verify passes
  • Added documentation: not needed for a test-only change

@pmd-actions-helper

pmd-actions-helper Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-07-08 23:07:18+00:00 for bad1d23)

@UncleOwen UncleOwen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion. Everything else looks good!

@adangel adangel changed the title test: cover pmd analysis configuration [core] test: cover pmd analysis configuration Jul 6, 2026
@amirdeljouyi
amirdeljouyi force-pushed the pr-tests-pmdanalysis branch from 0cbab8f to dcccec8 Compare July 7, 2026 09:40

@UncleOwen UncleOwen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@UncleOwen
UncleOwen merged commit 87e1f39 into pmd:main Jul 8, 2026
12 checks passed
@UncleOwen UncleOwen added this to the 7.27.0 milestone Jul 8, 2026
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.

2 participants