From the course: Java: Testing with JUnit
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Setting up JUnit for VS Code
From the course: Java: Testing with JUnit
Setting up JUnit for VS Code
- [Instructor] If Visual Studio Code is your go-to editor, this getting started video is for you. I'm assuming you have your Java environment set up already and if that's indeed the case, it's very easy to add JUnit to your environment. Here are the steps. We'll first install some extensions or maybe you have them already. Then we'll create a new project. We'll add dependency, and we test our setup. That's all. This is how easy it is to add JUnit to Visual Studio Code. Let's move over to Visual Studio Code. In order to run tests in Visual Studio Code, we'll have to install the Java Test Runner extension. So I'm going to head over to the Extension tab, and I'm going to be looking for Java Test Runner. And as you can see, I have it installed already. If you didn't install it yet, please click on Install in this screen. And after installing, I would recommend to change the setting. So I'm going to head over to Settings,…