Dotnet: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
~/.dotnet/tools/reportgenerator | ~/.dotnet/tools/reportgenerator | ||
== GitLab CI/CD == | |||
=== .gitlab-ci.yml === | |||
Which docker image to choose? | |||
* [https://docs.gitlab.com/ee/ci/yaml/ Documentation] | |||
* [https://mcr.microsoft.com/product/dotnet/sdk/about Microsoft Docker Images For Dotnet] | |||
Pushing nuget packages to GitLab repository: [https://docs.gitlab.com/ee/user/packages/nuget_repository/ NuGet Repository] | |||
[[Category:Programming]] | [[Category:Programming]] |
Latest revision as of 17:57, 1 March 2023
Notes about Microsoft's "dotnet" system.
Code Coverage
Prerequisites
dotnet tool install -g dotnet-reportgenerator-globaltool
Performing
dotnet test --collect:"XPlat Code Coverage"
This command creates a file with the name "coverage.cobertura.xml".
reportgenerator -reports:"./path/to/coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
This command creates a HTML report in directory "coveragereport".
If reportgenerator
could not be found, its location can be specified manually:
~/.dotnet/tools/reportgenerator
GitLab CI/CD
.gitlab-ci.yml
Which docker image to choose?
Pushing nuget packages to GitLab repository: NuGet Repository