{"id":216,"date":"2023-08-19T01:04:03","date_gmt":"2023-08-19T01:04:03","guid":{"rendered":"https:\/\/vihoth.com\/jetbrains\/?p=216"},"modified":"2023-08-19T10:46:52","modified_gmt":"2023-08-19T10:46:52","slug":"dotcover-the-net-unit-test-runner-and-code-coverage-tool","status":"publish","type":"post","link":"https:\/\/vihoth.com\/jetbrains\/en\/dotcover-the-net-unit-test-runner-and-code-coverage-tool\/","title":{"rendered":"Dotcover The .NET Unit Test Runner and Code Coverage Tool"},"content":{"rendered":"<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">JetBrains dotCover is a .NET unit test runner and code coverage tool that integrates with Visual Studio and JetBrains Rider.<\/p>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">Make sure you know to what extent your code is covered with unit tests. dotCover calculates and reports statement-level code coverage in applications targeting\u00a0<span class=\"jb-text-nowrap\">.NET Framework<\/span>,\u00a0<span class=\"jb-text-nowrap\">.NET Core<\/span>, Mono, or\u00a0<span class=\"jb-text-nowrap\">Mono for Unity<\/span>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-217 size-large\" src=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-1024x587.png\" alt=\"\" width=\"1020\" height=\"585\" srcset=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-1024x587.png 1024w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-300x172.png 300w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-768x440.png 768w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-1536x880.png 1536w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-1-2048x1173.png 2048w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light\">Unit tests<\/h3>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">Execute and debug unit tests and run coverage analysis of unit tests in Visual Studio or using the command-line utility. dotCover supports many unit testing frameworks including MSTest, NUnit, xUnit, and MSpec.<\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-48\">Manual test sessions<\/h3>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">For manual test sessions, dotCover shows what parts of code were called during the session and which parts were not reached. Using the coverage analysis data, you can easily get to the source code of the tested application.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-218 size-large\" src=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2-1024x650.png\" alt=\"\" width=\"1020\" height=\"647\" srcset=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2-1024x650.png 1024w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2-300x190.png 300w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2-768x487.png 768w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2-1536x974.png 1536w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-2.png 1786w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-48\">Detecting hot spots<\/h3>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">Detect potential risk areas at a glance with Hot Spots view, which shows the most complex methods with the least coverage. Get your coverage analysis off to a good start with an intuitive graphical representation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-219 size-large\" src=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3-1024x614.png\" alt=\"\" width=\"1020\" height=\"612\" srcset=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3-1024x614.png 1024w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3-300x180.png 300w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3-768x460.png 768w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3-1536x921.png 1536w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-3.png 2024w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-48\">Seamless integration\u00a0<span class=\"jb-text-nowrap\">with Visual Studio<\/span>\u00a0and\u00a0<span class=\"jb-text-nowrap\">JetBrains Rider<\/span><\/h3>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">dotCover integrates with Visual Studio and JetBrains Rider, giving you the advantage of analyzing and visualizing code coverage without leaving the code editor. It supports Visual Studio 2010\u20132017 and JetBrains Rider 2018.2 or later.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-220 size-large\" src=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4-1024x617.png\" alt=\"\" width=\"1020\" height=\"615\" srcset=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4-1024x617.png 1024w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4-300x181.png 300w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4-768x462.png 768w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4-1536x925.png 1536w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-4.png 2033w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-48\">Continuous testing<\/h3>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">dotCover can figure out on-the-fly which unit tests are affected by your latest code changes, and automatically re-runs the affected tests for you.<\/p>\n<p class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">The continuous testing mode can be switched on for any unit test session: this way you can choose which tests you want to run continuously and which to run the traditional way.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-221 size-large\" src=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5-1024x724.png\" alt=\"\" width=\"1020\" height=\"721\" srcset=\"https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5-1024x724.png 1024w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5-300x212.png 300w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5-768x543.png 768w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5-1536x1086.png 1536w, https:\/\/vihoth.com\/jetbrains\/wp-content\/uploads\/2023\/08\/dotcover-5.png 2035w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h2 class=\"wt-h2 wt-h2_theme_light\">Why dotCover<\/h2>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-24\">Coverage highlighting<\/h3>\n<div class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">\n<p>dotCover can visualize code coverage for your convenience. You can see highlighted statements covered and uncovered in a particular coverage session, right in Visual Studio.<\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-24\">Filtering and excluding nodes<\/h3>\n<div class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">\n<p>Customize your coverage analysis with a coverage filter. When you exclude specific items from a coverage snapshot, dotCover instantly recalculates coverage statistics.<\/p>\n<h3 class=\"wt-h3 wt-h3_theme_light wt-offset-top-24\">Continuous coverage analysis<\/h3>\n<div class=\"wt-text-1 wt-text-1_theme_light wt-offset-top-24\">\n<p>dotCover offers a console utility for use with a Continuous Integration server. In addition, a free server-side version of dotCover is built into\u00a0TeamCity.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>JetBrains dotCover is a .NET unit test runner and code coverage tool that integrates with Visual Studio and JetBrains Rider. Make sure you know to what extent your code is covered with unit tests. dotCover calculates and reports statement-level code coverage in applications targeting\u00a0.NET Framework,\u00a0.NET Core, Mono, or\u00a0Mono for Unity. Unit tests Execute and debug [&#8230;]\n","protected":false},"author":2,"featured_media":217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[13,15],"class_list":["post-216","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jetbrains-en","tag-dotcover","tag-jetbrains"],"_links":{"self":[{"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":1,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/posts\/216\/revisions\/222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/media\/217"}],"wp:attachment":[{"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vihoth.com\/jetbrains\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}