IntelliJ IDEA 2023.1.2 (Ultimate Edition), hope to support including the <excludes> setting from maven-surefire-plugin

已回答

Hello, 

We are currently developing Java projects with Maven.

We would like to exclude some tests according to the setting for maven-surefire-java plugin in pom.xml, as follows: 

This setting works while executing tests with the command "mvn test". However while executing tests with Intellij test runner, those excluded tests are still executed. 

After looking up settings of Intellij, I found in "Setting -> Build, Execution, Deployment -> Build Tools -> Maven -> Running Tests", it does read the configurations from maven-surfier-plugin, but only including "argLine", "systemPropertyVariable", and "environmentVariables"; as follows: 

I think it would be nice to have the "exclude" config being included since it is useful in some cases. 

 

Thank you. 

0

Hello!
I have tested the setup you have described and IDEA does respect include/exclude settings for the Surefire Plugin.
Can you please provide a sample Project to reproduce the issue?
I would also appreciate if you could share a screenshot of your Maven settings (Settings/Preferences (on macOS) -> Build, Execution, Deployment -> Build Tools -> Maven).

0

请先登录再写评论。