args being ignored

Open
#1,699 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, typescript, vscode

Research direction

Start with the settings.json java.test.config.args configuration and trace how it reaches the logged RemoteTestRunner launch. Compare the configured args with the actual runner arguments; the work is done when the args are passed through and the excluded package is no longer run.

Written by the indexing model from the issue text.

Description

ai-triaged bug investigating junit test-execution

I have set the following configuration in settings.json:

"java.test.config": {
    "coverage": {
        "appendResult": false
    },
    "testKind": "junit",
    "args": ["--exclude-package=test.package.to.ignore"]
}

But it does not appear that the args array is being passed to the test runner. From the logs:

INFO: Trying to launch Java Program with options:
main-class: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
args: -version 3 -port 64185 -testLoaderClass org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader -loaderpluginname org.eclipse.jdt.junit5.runtime -testNameFile C:\Users\user\AppData\Local\Temp\testNames3476799342913323661.txt
module-path:
class-path:
vmArgs: -ea -Dfile.encoding=UTF-8 -cp "C:\Users\user\AppData\Local\Temp\cp_a9xn9vku4dypkzk1huwivwhyw.jar"

Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 2h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-java-test

All issues in microsoft/vscode-java-test

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.