Skip to content

p-martinho/DeveloperTools

Repository files navigation

NuGet NuGet Build and Test CodeQL Analysis

PMart.DeveloperTools

This set of libraries and applications provides different simple tools that may be useful for developers. The tools can also be used in .NET applications, they are available as NuGet packages.

NuGet Packages

PMart.DeveloperTools.CoreMask: Tools related with core masking. NuGet

Installation

Install one or more of the available NuGet packages in your project.

Use your IDE or the command:

dotnet add package <PACKAGE_NAME>

Usage

For specific usage details, read the documentation of the tools you want to use:

Unit Tests and Code Coverage

For unit testing, the solution uses the XUnit v3 framework, with the Microsoft Testing Platform (MTP) v2 enabled.

To run the unit tests and assess the code coverage, and if your IDE does not have a tool for it, follow these instructions:

  1. Install (if not already) the ReportGenerator tool:

    dotnet tool install dotnet-reportgenerator-globaltool --global
  2. Run the tests with code coverage enabled. Run this command in the root folder of the solution:

    dotnet test --solution DeveloperTools.slnx --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml --coverage-settings ./tests/CodeCoverage-settings.xml
  3. Use the ReportGenerator tool to create HTML from the XML coverage files. Run this command in the root folder of the solution:

    ReportGenerator -reports:**/coverage.cobertura.xml -targetdir:CoverageReport
  4. Open the HTML file CoverageReport\index.html to see the results.

✅ The solution has 100% code coverage.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages