Java on Visual Studio Code Update – February 2023
Hi everyone, welcome to our February update! In this blog we will bring you new features related to JUnit 5 parallel testing as well as new filter widget for Spring Boot dashboard. There is also some exciting news from GitHub Copilot, so let’s get started.
JUnit 5 Parallel Testing Support
JUnit 5 is a popular testing framework for Java developers, known for its comprehensive support for unit, integration, and functional testing. One of the significant improvements in JUnit 5 is its ability to execute tests in parallel, making testing faster and more efficient. Parallel execution distributes test cases across multiple threads, allowing them to run simultaneously, and delivering results much faster than running tests sequentially.
In our latest release, we have supported the parallel testing feature in Visual Studio Code Java. To use this feature, you need to set junit-platform.properties file with line :
junit.jupiter.execution.parallel.mode.default = concurrent
To learn about more about parallel testing in JUnit 5, you can visit the official documentation. Here’s a demo of this feature.
Filter Widget in Spring Boot Dashboard Extension
We have added a new filter widget to the endpoint mapping view in the Spring Boot dashboard extension. This widget allows developers to quickly search and filter through the various endpoints within their Spring application, making it easier to locate specific endpoints and analyze their behavior.
You can either use the exact filter or “fuzzy match” to search for the phrase you are interested in. By using the filter widget, developers can also easily identify duplicate or conflicting endpoints. Overall, the filter widget allows developers to efficiently manage their application’s endpoints and improve their development process. Here’s a demo for this feature.
GitHub Copilot AI Tech Upgraded and Generates 61% of Java Code
In a recent article published on Visual Studio Code Magazine, it is revealed that GitHub Copilot already generates 61% of Java Code in editors where it’s used. In average, it is already behind 46% of developer’s code across all programming languages. Even though Java is a verbose programming languages, it sill shows that Java developers are embracing the power of GitHub copilot and AI technology. With the extended partnership between Microsoft and OpenAI, there will more exciting features coming to Visual Studio Code Java as well.
Install Extension Pack for Java
To use all features mentioned above, please download and install Extension Pack for Java on Visual Studio Code.
If you are a Spring developer working on a Spring Boot application, you can also download the Spring Boot Extension Pack for specialized Spring experience.
Feedback and suggestions
As always, your feedback and suggestions are very important to us and will help shape our product in future. There are several ways to give us feedback
- Leave your comment on this blog post
- Open an issue on our GitHub Issues page
- Send an email to: firstname.lastname@example.org
Here is a list of links that are helpful to learn Java on Visual Studio Code.
- Learn more about Java on Visual Studio Code.