Skip to content

args being ignored #1699

@dbmckie

Description

@dbmckie

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions