Skip to content

Restore mutation testing#4276

Open
scordio wants to merge 1 commit into
3.xfrom
gh-3843-mutation-testing
Open

Restore mutation testing#4276
scordio wants to merge 1 commit into
3.xfrom
gh-3843-mutation-testing

Conversation

@scordio

@scordio scordio commented Jun 5, 2026

Copy link
Copy Markdown
Member

This is conceptually equivalent to #4275, but we want an incremental set of changes to properly verify the GitHub integration, and that must be done from a branch within the repo to avoid adopting the two-way steps from the beginning.


Co-authored-by:  Marius Barbulescu <barbulescu@users.noreply.github.com>

@scordio scordio added the event: Hack.Commit.Push A topic worked on during a Hack.Commit.Push event label Jun 5, 2026
@scordio scordio force-pushed the gh-3843-mutation-testing branch 4 times, most recently from 9b23161 to 23b4b91 Compare June 5, 2026 12:52
@scordio

This comment was marked as outdated.

@scordio scordio force-pushed the gh-3843-mutation-testing branch 3 times, most recently from 0a00688 to b957187 Compare June 5, 2026 14:10
@scordio scordio added this to the 3.x milestone Jun 5, 2026
@scordio scordio mentioned this pull request Jun 5, 2026
@scordio scordio force-pushed the gh-3843-mutation-testing branch from b957187 to 5def91b Compare June 5, 2026 14:42
Comment thread .github/workflows/pitest-publish.yml Fixed
Comment thread .github/workflows/pitest-run.yml Fixed
@scordio scordio force-pushed the gh-3843-mutation-testing branch 2 times, most recently from 5ad4a5a to 78ec6f4 Compare June 5, 2026 15:07
Comment thread .github/workflows/pitest-publish.yml Outdated
@scordio scordio force-pushed the gh-3843-mutation-testing branch 2 times, most recently from 78c05d9 to 51fba2f Compare June 5, 2026 19:29
@scordio

scordio commented Jun 7, 2026

Copy link
Copy Markdown
Member Author

The previous comment proves that the changes in this PR, combined with pitest-comment-pr.yml on main, work correctly.

@scordio scordio changed the title Add mutation testing Restore mutation testing Jun 7, 2026
@scordio scordio marked this pull request as ready for review June 7, 2026 13:16
@scordio scordio requested a review from Copilot June 7, 2026 13:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR restores mutation testing support in the AssertJ build by introducing Arcmutate’s PIT/GitHub integration and adding a dedicated GitHub Actions workflow to run PIT on selected integration-test modules.

Changes:

  • Add Arcmutate PIT plugin versions and plugin management to the root Maven build.
  • Configure PIT cross-module mode in the integration-test modules used by the workflow.
  • Add a new pitest-run.yml workflow to run mutation testing and upload aggregated reports as an artifact.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pom.xml Adds Arcmutate/PIT plugin management and PIT configuration used by modules/workflow.
assertj-tests/assertj-integration-tests/assertj-guava-tests/pom.xml Enables PIT cross-module mode for guava integration tests.
assertj-tests/assertj-integration-tests/assertj-core-tests/pom.xml Enables PIT cross-module mode for core integration tests.
assertj-guava/pom.xml Reorders enforcer/jacoco plugin declarations (no functional PIT change).
assertj-core/pom.xml Removes the old module-local PIT plugin configuration block.
.github/workflows/pitest-run.yml Adds a PR workflow to run PIT + aggregate results + upload artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pom.xml
@scordio scordio force-pushed the gh-3843-mutation-testing branch from 3c5a34b to d928017 Compare June 7, 2026 14:58
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Looks good. No mutations were possible for these changes.
See https://pitest.org/

@testlens-app

testlens-app Bot commented Jun 7, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: d928017
▶️ Tests: 66123 executed
⚪️ Checks: 19/19 completed


Learn more about TestLens at testlens.app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event: Hack.Commit.Push A topic worked on during a Hack.Commit.Push event

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants