This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-reporting-api.git
commit 32bc28ca5d8e100b331bdf8173e94d0904b9dfe8 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Thu Nov 26 04:04:34 2026 +0000 Add integration test guidance to AGENTS.md --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index bf6187e..760b5d6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,3 +51,12 @@ write a test that exposes the bug and verify the test fails. The bytecode floor is Java 8. Before submitting a PR, run `mvn spotless:apply` to format the files, then `mvn verify`. Run Spotless with JDK 17 or 21. + +### Integration tests + +Prefer a unit test. Add an invoker IT only for behavior that needs a real Maven build. Follow these rules for ITs: + +- Write hook scripts as described in [Pre and post build scripts](https://maven.apache.org/plugins/maven-invoker-plugin/examples/pre-post-build-script.html). +- When you run a subset with `-Dinvoker.test`, also list the setup and parent projects that the ITs need + (`setupIncludes`). +- Select an IT whose POM is not `pom.xml` as `<it>/<file>.xml`.
