This is Unit testing project
Add the env variables & test run parameters for the testing setting in test.runsettings. reference link is (here)
The required NuGet packages (coverlet & coverlet.msbuild) are referenced by this project. Issuing a dotnet restore
command will install them in the local machine.
Run Powershell in Administrator mode and execute the following commands:
dotnet tool install -g dotnet-reportgenerator-globaltool
dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools
dotnet new tool-manifest
dotnet tool install dotnet-reportgenerator-globaltool
Head to the Extensions menu and select Manage Extensions. Then, search Run Coverlet Report and install it - you may have to close all Visual Studio instances to install it.
After installation, open Visual Studio and head to Tools > Options and change the Integration Type from Collector to MSBuild.
Under the Tools menu, click on Run Code Coverage, this command runs the tests, generates the report file(s) in local system and renders within Visual Studio.
cd NET-Core.XUnit.UnitTests
dotnet clean
dotnet restore --force --no-cache
dotnet build --configuration [Release/Debug] --no-restore
dotnet test --settings "test.runsettings" --configuration [Release/Debug]