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.
PMart.DeveloperTools.CoreMask: Tools related with core masking.
Install one or more of the available NuGet packages in your project.
Use your IDE or the command:
dotnet add package <PACKAGE_NAME>For specific usage details, read the documentation of the tools you want to use:
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:
-
Install (if not already) the ReportGenerator tool:
dotnet tool install dotnet-reportgenerator-globaltool --global
-
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 -
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 -
Open the HTML file
CoverageReport\index.htmlto see the results.
✅ The solution has 100% code coverage.