Introduction
Organizing tests by package helps keep related tests together. It makes tests easier to find and maintain.
When you have many tests for different parts of your application.
When you want to run all tests related to a specific feature or module.
When you want to share setup or utility code among tests in the same package.
When you want to keep your project clean and easy to navigate.
When you want to run tests selectively by package in your build tool or IDE.