javavscode
javavscode copied to clipboard
test runner incorrectly processes test names
If you have two tests named with the same prefix, the test runner shows them as nested.
For example, ensureAllElementsAreRead and ensureAllElementsAreReadUsingThread it shows the latter nested under the first.
See attached screenshot.
Hi @robaho. Thanks for providing a screenshot of the issue. Would you please provide some more details about your environment? such as:
- The version of VS Code you're using;
- The version of the extension you're using;
- The version of JUnit you are using;
- Whether the project is a maven or a gradle project; and which version is in use.
- The JDK version in use;
- Any other information that you may think might be useful for us to reproduce this issue.
Thank you.
Version: 1.91.1 (Universal)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 21.6.0
Oracle extension version v22.1.1 Gradle JDK 21
As I mentioned in the related issue, you can install the project from https://github.com/robaho/closablequeue
rca: issue is due to grouping based on prefix and leaving extra entries in explorer panel which are not getting right test status updates
fix for this issue: will be removing grouping
other existing issues which will be fixed based on priority:
- test case run if build failures are present, test explorer shows previously run test cases , but count appears as 0/0 in explorer panel
- test report in gradle considering (passed/total) tests count incorrectly in test explorer , if 1 suite has 2 testcases , total count in test explorer is shown as 3 (which is also including test suite in the count + 2 test cases) instead of 2,
- after renaming previously existing test case/test suite still shows up in explorer panel as skipped test related to issue #216