Add support for src/it folder for integration tests
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
Although it is possible to place both unit and integration tests in `src/test` it is better to keep them separately (see [this](https://cwiki.apache.org/confluence/display/MAVENOLD/best+practices+-+testing+strategies) and [this](https://stackoverflow.com/questions/17865088/in-maven-is-it-possible-to-keep-integration-tests-in-a-separate-folder-from-unit)):
```
project/
|_ src
|_ main
|_ test
|_ java
|_ resources
|_ it
|_ java
|_ resources
```
So, I suggest to add such support with JPMS support for IT tests (so it could be possible to create module-info in `src/it/java`)
### Use case/motivation
Unit and integration test differ very much so it is not good to mix them.
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by locating the existing src/test integration-test configuration and its JPMS handling, then compare how src/main and src/test are wired. Define the expected lifecycle for src/it/java and src/it/resources, including module-info support, and validate it with an integration-test fixture.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100