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
Hi dbmckie, 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.
It looks like the built-in JDT test runner (RemoteTestRunner) does not pick up the args array unless you explicitly map it to a named test profile that you then select. Here are a couple of approaches to try:
• Align your config name with the launch config (issue #852):
// settings.json"java.test.config": [
{
// must match the name VS Code shows when launching tests"name": "Launch Java Tests",
"testKind": "junit",
"args": ["--exclude-package=test.package.to.ignore"]
}
]
Then pick that profile via the Test Explorer’s “Execute Using Profile…” menu.
• If you need full ConsoleLauncher support (so that --exclude-package is honored), create a custom launch.json entry instead of using the JDT runner:
• Issue #1508/#1427 – about Gradle test delegation; unlikely to affect JDT arg passing. #1508 (comment)
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
dbmckie commentedon Jun 13, 2024
Tested with
Output:
args: -version 3 -port 64962 -testLoaderClass org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader -loaderpluginname org.eclipse.jdt.junit5.runtime -testNameFile C:\Users\user\AppData\Local\Temp\testNames12627821658992615585.txt
to compare with
Output:
args: -version 3 -port 64633 -testLoaderClass org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader -loaderpluginname org.eclipse.jdt.junit5.runtime -testNameFile C:\Users\user\AppData\Local\Temp\testNames590903279624443577.txt --exclude-tag test_tag
github-actions commentedon Nov 12, 2025
Hi dbmckie, 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.
It looks like the built-in JDT test runner (RemoteTestRunner) does not pick up the
argsarray unless you explicitly map it to a named test profile that you then select. Here are a couple of approaches to try:• Align your config name with the launch config (issue #852):
Then pick that profile via the Test Explorer’s “Execute Using Profile…” menu.
• If you need full ConsoleLauncher support (so that
--exclude-packageis honored), create a customlaunch.jsonentry instead of using the JDT runner:References:
java.test.configshould align with the launch configuraiton #852 “The key name injava.test.configshould align with the launch configuraiton” – explains that unnamed or mis-named configs (includingargs) get ignored by the JDT runner. The key name injava.test.configshould align with the launch configuraiton #852argsis applied when using the JUnit Platform ConsoleLauncher: VS Code reports test status incorrectly when classname ends with IT #381 (comment)Other references with low confidence
• Issue #1508/#1427 – about Gradle test delegation; unlikely to affect JDT arg passing. #1508 (comment)
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!