You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Case. I need to debug test on different env and in this case i need to change my maven profile, via running it with terminal i just add -PPROFILENAME, but i cant do it in your extension. Also i can switch profile in maven extesion, but it doest apply for tests.
Hi Jeik64, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions
Currently the Java Test Runner does not support passing Maven profiles when running or debugging tests in the editor. You can:
Use the built-in Maven extension or a terminal task to invoke mvn test -P<profileName> or mvn surefire:test -P<profileName> and attach the debugger manually.
Create a custom VS Code preLaunchTask in .vscode/launch.json that runs Maven with -P<profileName> before starting a debug session.
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
Activity
github-actions commentedon Nov 13, 2025
Hi Jeik64, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions
Currently the Java Test Runner does not support passing Maven profiles when running or debugging tests in the editor. You can:
mvn test -P<profileName>ormvn surefire:test -P<profileName>and attach the debugger manually..vscode/launch.jsonthat runs Maven with-P<profileName>before starting a debug session.Track and upvote the feature request:
Other references with low confidence
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
jimisola commentedon Nov 13, 2025
Please reopen.