GeezerVison is showing github.com — [test] chore: Throw a TestAbortedException on disabled tests by UncleOwen · Pull Request #6576 · pmd/pmd
Conversation
UncleOwen
commented
Apr 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
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.)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
adangel
changed the title
[core] Throw a TestAbortedException on disabled tests
[core] chore: Throw a TestAbortedException on disabled tests
Apr 7, 2026
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
adangel
changed the title
[core] chore: Throw a TestAbortedException on disabled tests
[test] chore: Throw a TestAbortedException on disabled tests
Apr 7, 2026
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
adangel
adangel approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.