0

I have a Java project on VSCode for Windows and I have installed the Test Runner plugin ...

enter image description here

I would like to be able to run a test file from the editor and see the results. In Eclipse, I can right click on the test file but when I open the test file in the editor

enter image description here

I don't see any option to right click and run my test file and I don't see any "Run Test" text hovering above my test file class, as some other posts seem to suggest. What is the right way to run a test from the editor? I'm not tied to Test Runner for Java. I'm open to using other extensions.

Dave
  • 15,639
  • 133
  • 442
  • 830

1 Answers1

0

The Test Runner for Java extension supports the following test frameworks:

You must first enable testing and adding test framework JARs to your project. Then in the Testing panel on the left, you can see the test list of the project and test it. A Test button is also displayed to the left of the test script.

enter image description here

There are more details you can look at this document.

JialeDu
  • 6,021
  • 2
  • 5
  • 24