microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
297 stars 133 forks source link

Some tests inside static class won't run after click "Run All Tests" button #1283

Open chenyuanmac opened 3 years ago

chenyuanmac commented 3 years ago

Environment:

OS: Windows JDK: 11 Java Test Runner Extension: 0.31.2

Repro steps:

1.git clone : https://github.com/ZhengJun003/junit5-samples/tree/testrunner 2.Open junit5-jupiter-starter-maven with VSCode 3.Click "Run All Tests" from Test Explorer

Result: Tests inside static class don't run. image

Preranamisra commented 3 years ago

Hey, can u add me as a contributor? I am working on it. Will solve this within somedays.

jdneo commented 3 years ago

@Preranamisra You can just raise your PR directly if you would like to, and I'll take a look then. This repo is open for any kind of contribution.

jdneo commented 3 years ago

@Preranamisra Is there anything I can help?

cyberskycat commented 3 years ago

@jdneo why the codelens disapper , in https://github.com/microsoft/vscode-java-test/issues/1283#issue-971414601

Environment:

OS: Windows JDK: 11 Java Test Runner Extension: 0.31.2

Repro steps:

1.git clone : https://github.com/ZhengJun003/junit5-samples/tree/testrunner 2.Open junit5-jupiter-starter-maven with VSCode 3.Click "Run All Tests" from Test Explorer

Result: Tests inside static class don't run. image

jdneo commented 3 years ago

@cyberskycat We adopted the new testing APIs from VS Code. It's using the left side 'testing decorations' to run tests now

cyberskycat commented 3 years ago

@cyberskycat We adopted the new testing APIs from VS Code. It's using the left side 'testing decorations' to run tests now

ok thanks, and the wiki FAQ should update this info https://github.com/microsoft/vscode-java-test/wiki/FAQ