If you open the generated htm file ( src/coverage/report/index.htm’) you can see a summary of the code coverage and you can click on every namespace or class to navigate to the detail. T15:31:27: Report generation took 0.2 seconds T15:31:27: Writing report file 'src/coverage/report/index.htm' T15:31:27: Initializing report builders for report types: HTMLInline T15:31:27: Finished parsing /Users/mookiefumi/temp/NBAStats/src/coverage/. T15:31:27: Loading report '/Users/mookiefumi/temp/NBAStats/src/coverage/' 1/1 in memory T15:31:27: Working directory: /Users/mookiefumi/temp/NBAStats T15:31:27: Executable: /Users/mookiefumi/.dotnet/tools/.store/dotnet-reportgenerator-globaltool/4.3.1/dotnet-reportgenerator-globaltool/4.3.1/tools/netcoreapp3.0/any/ T15:31:27: -targetdir:src/coverage/report Reportgenerator "-reports:src/coverage/*.xml" "-reporttypes:HTMLInline" "-targetdir:src/coverage/report" So if we want to create a report with the opencover format in the directory. Setup the output format because it’s compatible with: Please take into account the 20%, it’s only a demo.Ĭoverlet has multiple interesting options but my two favorites are: | NBAStats.Core | 20.44% | 14.78% | 20.12% |Īs you can see the last lines are regarding with the code coverage calculation. Using Code Coverage with Burst compiler Uncheck Enable Compilation under Jobs > Burst > Enable Compilation Pass -burst-disable-compilation to the command line. Dotnet test /p:CollectCoverage = trueĪ total of 1 test files matched the specified pattern.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |