Copilot commented on code in PR #3656:
URL: https://github.com/apache/maven-surefire/pull/3656#discussion_r4731139114


##########
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java:
##########
@@ -118,6 +118,7 @@ protected void resolveClasspath(
                     startClass,
                     isMainDescriptor,
                     config.getJpmsArguments());
+            cli.addTempFile(argsFile);

Review Comment:
   The cleanup of JPMS argument files has no regression assertion: the new 
integration fixture uses a manifest-only JAR, while 
`ModularClasspathForkConfigurationTest.shouldCreateModularArgsFile` checks only 
the generated arguments and file contents. Removing this registration would 
therefore leave those tests passing while modular forks still accumulate 
`surefireargs` files. Please extend the existing modular test to assert that 
`cli.getTempFiles()` contains the argument file referenced by the command line.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to