Closed raffian closed 3 months ago
Thank you for providing the detailed information for the bug. This should be fixed in the latest pre-release.
@jdneo
My pleasure, and thank you for the quick turnaround. My colleague is very active with VSCode projects and speaks highly of your team - now I see why 👍
A strange one indeed....
Setup
I'm developing with Java 21 and JUnit 5 using
@CvsSource
and@ParameterizedTest
. I use Run Test for executing tests, no problem - all is good. Spent a few hours today refactoring a test class and had to comment out a few redundant tests, after doing so the test class looked something like this:Problem
After making those harmless edits, all tests in the class stopped working. Click Run Test now for any test does nothing except display pop-up error ...
Solution?
It took hours to figure out but the culprit appears to be those commented lines
//@ParameterizedTest
and//@CsvSource
preceding the actual test. Delete those comments, Run Test, no more error. Grammar parser error or bad interpreter is what this feels like to me but what do I know.Specs
VSCode:
1.91.1
Java Runtime:OpenJDK 64-Bit Server VM Corretto-21.0.3.9.1
OS:Windows 10/22H2
Extensions0.41.1
0.27.0
1.32.0
pom.xml
springboot-starter-test:3.2.5
(I can provide effective-pom if required)