

Has anyone had similar problems, or does anyone have some insight on how to run a java project without a maven or another project manager? I'm sure there is a way to make this work, but I feel like I'm missing the obvious. Sometimes it does not recognize the annotation and will attempt to solve the import troubles by having me at the import within the program, (Example: When using assertSame method I would have to write: When doing this the issue I have is that VS Code has troubles with the JUnit imports. Problem 2: I have had some success with importing a project first developed in eclipse into VS code.

Also when I click on the test Explorer tab, I don't see the test class listed, but it is in the project folder. I should see an option to run or debug my test, but no such option pops up. Problem 1: After creating and running a Java project, if I attempt to add a JUnit test class, the program cannot find the class/test.

I have had two main problems that do not co-exist in each all the projects I've created. I'm having all sorts of trouble running JUnit in Visual Studio Code.
