[test] chore: Throw a TestAbortedException on disabled tests#6576
Merged
Conversation
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.)
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
Contributor
|
No regression tested rules have been changed. (comment created at 2026-04-05 18:41:44+00:00 for 41f903b) |
adangel
added a commit
that referenced
this pull request
Apr 7, 2026
adangel
added a commit
that referenced
this pull request
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Describe the PR
Tests are skipped if
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?
./mvnw clean verifypasses (checked automatically by github actions)