{"id":32144,"date":"2023-04-27T22:18:00","date_gmt":"2023-04-27T22:18:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=32144"},"modified":"2023-04-27T22:20:00","modified_gmt":"2023-04-27T22:20:00","slug":"whats-new-for-cmake-tools-1-14-in-vs-code-test-explorer","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/whats-new-for-cmake-tools-1-14-in-vs-code-test-explorer\/","title":{"rendered":"What\u2019s New for CMake Tools 1.14 in VS Code  &#8211; Test Explorer"},"content":{"rendered":"<p>The team has been working hard to provide new highly requested capabilities for CMake users. Now, in version 1.14, we have provided a new Test Explorer for using CTest with your CMake projects. This release also features <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/blob\/main\/CHANGELOG.md\">open-source community contributions<\/a> from users. Thanks for your contributions!<\/p>\n<h2>Test Explorer<\/h2>\n<p>One of our most highly-upvoted tickets in the CMake Tools Extension was <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/issues\/1682\">the request for a Test Explorer<\/a> for CTest. We are excited to announce that this is now available for users in the latest version of the CMake Tools extension in VS Code. Now, in your CMake projects, you can click the \u201cRun CTest\u201d icon along the bottom status bar or the \u201cTesting\u201d side panel icon to launch the test explorer.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2023\/04\/Recording-2023-04-27-151310.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-32147\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2023\/04\/Recording-2023-04-27-151310.gif\" alt=\"The new Test Explorer in action\" width=\"1716\" height=\"960\" \/><\/a><\/p>\n<p>When the project is configured, the tests in your CMakeLists.txt will load in the Test Explorer.<\/p>\n<p>In the Test Explorer, you can view the detailed state of all your tests and the last results of these test runs. By clicking on the play button, you can run a specific test (or set of tests). Also, by clicking on the debug play button, you can debug these tests. Using the topmost icon, you can view the output of these tests. You can refresh these tests at any time using the refresh icon up top.<\/p>\n<p>We are continuing to listen to and work on all feedback we receive on the Test Explorer, so if you have any issues or suggestions, please report them in the <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/issues\">Issues section of our GitHub repository<\/a>.<\/p>\n<h3>Future Work<\/h3>\n<p>Next up, we are planning to <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/issues\/1582\">experiment with the CMake tools user experience settings<\/a>\u00a0and <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/issues\/534\">implement CMake language services<\/a> and <a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\/issues\/3093\">a CMake Debugger<\/a>.<\/p>\n<p>Is there anything else you\u2019d like to see? Let us know!<\/p>\n<h3>What do you think?<\/h3>\n<p>Download the\u00a0<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode.cmake-tools\">CMake\u00a0Tools extension\u00a0<\/a>for Visual Studio Code and let us know what you think.\u00a0We would love to see what you contribute to our<a href=\"https:\/\/github.com\/microsoft\/vscode-cmake-tools\"> repo<\/a> and are active on reviews and collaboration. Comment below or reach us via email at\u00a0<a href=\"mailto:visualcpp@microsoft.com\">visualcpp@microsoft.com<\/a>\u00a0or via\u00a0Twitter at\u00a0<a href=\"https:\/\/twitter.com\/visualc\">@VisualC<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The team has been working hard to provide new highly requested capabilities for CMake users. Now, in version 1.14, we have provided a new Test Explorer for using CTest with your CMake projects. This release also features open-source community contributions from users. Thanks for your contributions! Test Explorer One of our most highly-upvoted tickets in [&hellip;]<\/p>\n","protected":false},"author":85413,"featured_media":32149,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,275],"tags":[],"class_list":["post-32144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>The team has been working hard to provide new highly requested capabilities for CMake users. Now, in version 1.14, we have provided a new Test Explorer for using CTest with your CMake projects. This release also features open-source community contributions from users. Thanks for your contributions! Test Explorer One of our most highly-upvoted tickets in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/32144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/85413"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=32144"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/32144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/32149"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=32144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=32144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=32144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}