Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "java.test.config" setting is ignored #1108

Closed
yacut opened this issue Nov 26, 2020 · 1 comment
Closed

The "java.test.config" setting is ignored #1108

yacut opened this issue Nov 26, 2020 · 1 comment

Comments

@yacut
Copy link

yacut commented Nov 26, 2020

Workspace settings:

{
    "java.test.config": [
        {
            "name": "Unit Tests",
            "workingDirectory": "${workspaceFolder}",
            "args": [
                "--include-classname",
                ".*Test",
            ],
        },
        {
            "name": "Integration Tests",
            "workingDirectory": "${workspaceFolder}",
            "args": [
                "--include-classname",
                ".*IT",
            ],
        }
    ],
    "java.test.defaultConfig": "Unit Tests"
}

Actual behaviour

The "Run all tests" command starts all tests including integration tests

Expected behaviour

The "Run all tests" command starts only unit tests

@jdneo
Copy link
Member

jdneo commented Nov 27, 2020

Thanks @yacut, we can only run test folders which are marked as test by the build tools (which are persisted in .classpath)

This issue is the same as #464.

@jdneo jdneo closed this as completed Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants