GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [test] chore: Throw a TestAbortedException on disabled tests by UncleOwen · Pull Request #6576 · pmd/pmd

Conversation

@UncleOwen

@UncleOwen UncleOwen commented Apr 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Describe the PR

Tests are skipped if

  • they are marked as disabled="true" OR
  • any other test in the same .xml file is marked as focused="true"

This change allows for correct reporting: Previously, UnusedAssignmentTest would show as "169 tests passed" in IntelliJ. Now it shows as "168 tests passed, 1 ignored", because one test is diabled. Also, the correct symbol is shown for the disabled test. (Other test runners will behave similarly.)

Related issues

none

Ready?

  • Added unit tests for fixed bug/feature - Should I? The only tests I could see for this involved a massive amount of mocking. Even more than the existing tests for RuleTst.java
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • [n/a] Added (in-code) documentation (if needed)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@UncleOwen
Throw a TestAbortedException on disabled tests
41f903b
Tests are skipped if
  * they are marked as disabled="true" OR
  * any other test in the same .xml file is marked as focused="true"

This change allows for correct reporting: Previously,
UnusedAssignmentTest would show as "169 tests passed" in IntelliJ. Now
it shows as "168 tests passed, 1 ignored". Also, the correct symbol is
shown for the disabled test. (Other test runners will behave similarly.)
@UncleOwen
UncleOwen marked this pull request as draft April 5, 2026 18:27
@codacy-production

codacy-production Bot commented Apr 5, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pmd-actions-helper

pmd-actions-helper Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

No regression tested rules have been changed.

(comment created at 2026-04-05 18:41:44+00:00 for 41f903b)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@UncleOwen
UncleOwen marked this pull request as ready for review April 5, 2026 19:14
@adangel adangel changed the title [core] Throw a TestAbortedException on disabled tests [core] chore: Throw a TestAbortedException on disabled tests Apr 7, 2026
@adangel adangel added the in:pmd-internals Affects PMD's internals label Apr 7, 2026
@adangel adangel added this to the 7.24.0 milestone Apr 7, 2026
adangel
adangel approved these changes Apr 7, 2026
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adangel adangel changed the title [core] chore: Throw a TestAbortedException on disabled tests [test] chore: Throw a TestAbortedException on disabled tests Apr 7, 2026
adangel added a commit that referenced this pull request Apr 7, 2026
@adangel
[doc] Update release notes (#6576)
8fffcfb
adangel added a commit that referenced this pull request Apr 7, 2026
@adangel
[test] chore: Throw a TestAbortedException on disabled tests (#6576)
20fd128
@adangel
adangel merged commit 41f903b into pmd:main Apr 7, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@UncleOwen
UncleOwen deleted the correctly-mark-disabled-tests branch April 16, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

in:pmd-internals Affects PMD's internals

Projects

None yet

Milestone

7.24.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@UncleOwen @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.