Install dotnet core using the dotnet-install script
./dotnet-install.sh -Version 3.1.201
git clone git@github.com:hekar/joke-generator.git
dotnet restore
dotnet run
The project only contains unit tests. Integration tests will need to be added in the future. There would need to a mechanism to mock the console and web server.
cd JokeGeneratorUnitTests
dotnet test
Dotcover gathers code coverage results.
Dotcover requires dotnet core 2.2.x.
./dotnet-install.sh -Version 2.2.207
cd JokeGeneratorUnitTests
dotnet dotcover test --dotCoverXml=coverage.xml
The default coverage.xml generates an HTML report under JokeGeneratorUnitTests/dotCover.html
.
xdg-open JokeGeneratorUnitTests/dotCover.html