[SUREFIRE-1654] Remove deprecated forkMode parameter by SimonBaars · Pull Request #575 · apache/maven-surefire (original) (raw)

The forkMode parameter has been deprecated in Surefire 2.14, and with the upcoming 3.0 release, it's finally time to remove the parameter once and for all.

Reviewer instructions

Removing the forkMode ended up being a quite comprehensive change. Throughout the refactoring/restructuring process, I ran the tests and integration tests often, to ensure equivalent behavior. I re-purposed most forkMode tests to test the forkCount parameter, removing a few that were per definition redundant.

Each commit should address a "sub-issue" I had to tackle to remove the forkMode. If the entire diff looks daunting, I can recommend reviewing commit-by-commit. Each commit should be a version that compiles on its own.

Here are a few more pointers for reviewing:

What's next?

While working on this, I noticed a few codebase styling issues that I'd like to refactor. To keep the diff of this PR sensible, I decided it would be better to open a separate PR for that. So you can expect another PR incoming 😉

Checklist

Following this checklist to help us incorporate your
contribution quickly and easily:

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

License

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.