{"id":15435,"date":"2017-12-01T08:00:22","date_gmt":"2017-12-01T16:00:22","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=15435"},"modified":"2019-02-18T09:10:06","modified_gmt":"2019-02-18T16:10:06","slug":"announcing-junit-support-for-visual-studio-code","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/announcing-junit-support-for-visual-studio-code\/","title":{"rendered":"Announcing JUnit Support for Visual Studio Code"},"content":{"rendered":"<p>Today, we\u2019re pleased to release a new extension to our Visual Studio Code Java extension family &#8211; <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-test\">Test Runner\/Debugger for Java<\/a>. It\u2019s a lightweight test runner\/debugger with below features we hope you will like.<\/p>\n<ul>\n<li>Recognize JUnit4 tests<\/li>\n<li>Run test<\/li>\n<li>Debug test<\/li>\n<li>View test status and run summary<\/li>\n<\/ul>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/JUnit-Support-for-VS-Code.gif\"><img decoding=\"async\" title=\"Java 9 Support\" alt=\"Java 9 Support\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/JUnit-Support-for-VS-Code.gif\" \/><\/a><\/p>\n<p>Same as the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Debugger for Java<\/a>, this is also an open source project. Please check out the github page <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-test\/\">https:\/\/github.com\/Microsoft\/vscode-java-test\/<\/a> for more details and feedback.<\/p>\n<p>Along with the new extension, we\u2019re also updating our <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Debugger<\/a> extension with version 0.4.0. With this release, we\u2019re adding a few useful tools to make Java debugger in VS Code more enjoyable.<\/p>\n<h2>Launch in terminal<\/h2>\n<p>Since the standard VS Code debug console does not allow input, we\u2019re now providing an alternative for you to use external or integrated terminal within VS Code to launch your application. Now you can input values to step over the input statements. It\u2019s also a simple configuration in launch.json.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/Launch-in-Terminal.gif\"><img decoding=\"async\" title=\"Java 9 Support\" alt=\"Java 9 Support\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/Launch-in-Terminal.gif\" \/><\/a><\/p>\n<h2>Stop on Entry<\/h2>\n<p>With a simple configuration, now you can ask the debugger to stop at your first line of code when it\u2019s launched, and step through from there without needing to put a breakpoint beforehand.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/Stop-on-Entry.gif\"><img decoding=\"async\" title=\"Java 9 Support\" alt=\"Java 9 Support\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/Stop-on-Entry.gif\" \/><\/a><\/p>\n<h2>Other changes<\/h2>\n<p>This new release also include these additional updates<\/p>\n<ol>\n<li>Multi-root workspace support<\/li>\n<li>Bug fixes.<\/li>\n<\/ol>\n<p>Details could be found at our <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">extension marketplace page<\/a> and our <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-debugging\">debugging tutorial<\/a>. For our next release, we\u2019re now working on 3 other highly demanded feature, step filter, expression evaluation and hot code replacement. Please stay tuned and we will enable those soon! Please find more details in our <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-debug\/blob\/master\/CHANGELOG.md\">changelog<\/a> and don\u2019t hesitate if you would like to share your thoughts with us, just join the <a href=\"https:\/\/microsoft-my.sharepoint.com\/personal\/hxiao_microsoft_com\/Documents\/Java%20on%20Azure\/VS%20Blog\/(https:\/gitter.im\/Microsoft\/vscode-java-debug)\">Gitter<\/a> discussion or submit an <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-debug\/issues\">issue<\/a>!<\/p>\n<h2>Try it out<\/h2>\n<p>If you\u2019re trying to find a performant editor for your Java project, please give it a try<\/p>\n<ul>\n<li>Install the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Java Extension Pack<\/a> which including <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=redhat.java\">Language Support for Java(TM) by Red Hat<\/a>, <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Debugger for Java<\/a> and <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-test\">Test Runner\/Debugger for Java<\/a>.<\/li>\n<li>Learn more about <a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\">Java on Visual Studio Code<\/a>.<\/li>\n<li>Explore our step by step <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial\">Java Tutorials on VS Code<\/a>.<\/li>\n<li>You can submit a bug of feature request to <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-debug\/issues\">Java Debugger Extension<\/a> and participant community driven <a href=\"https:\/\/microsoft-my.sharepoint.com\/personal\/hxiao_microsoft_com\/Documents\/Java%20on%20Azure\/VS%20Blog\/(https:\/gitter.im\/Microsoft\/vscode-java-debug)\">Gitter<\/a> channel for discussion.<\/li>\n<\/ul>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"600\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" width=\"150\" height=\"410\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/Xiaokai-He.jpg\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Xiaokai He<\/strong>, Program Manager, Java Tools and Services\n<a href=\"https:\/\/twitter.com\/xiaokaihe\">@XiaokaiHe<\/a><\/p>\n<p>Xiaokai is a program manager working on Java tools and services. He\u2019s currently focusing on making Visual Studio Code great for Java developers, as well as supporting Java in various of Azure services.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Today, we\u2019re pleased to release a new extension to our Visual Studio Code Java extension family &#8211; Test Runner\/Debugger for Java. It\u2019s a lightweight test runner\/debugger with below features we hope you will like. Recognize JUnit4 tests Run test Debug test View test status and run summary Same as the Debugger for Java, this is [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[744,746],"tags":[743,745,701],"class_list":["post-15435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-visual-studio","tag-java","tag-visual-studio","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>Today, we\u2019re pleased to release a new extension to our Visual Studio Code Java extension family &#8211; Test Runner\/Debugger for Java. It\u2019s a lightweight test runner\/debugger with below features we hope you will like. Recognize JUnit4 tests Run test Debug test View test status and run summary Same as the Debugger for Java, this is [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/15435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=15435"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/15435\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=15435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=15435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=15435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}