I wanted to do Java mob programming using LiveShare of VS Code, so I looked it up.
Do as per the gif image below https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-spring-initializr
When you press F5,
launch.json will be created, so set the port number for debugging.
Press F5 again to launch the Spring Boot application
Open the test menu and right-click on the test target-> Run Test
Alternatively, press Run Test on the code
The test result can be confirmed as follows