Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dotnet restore
- dotnet build
- # Instrument assemblies inside './' folder to detect hits for source files inside '../Stck/' folder
- dotnet minicover instrument --workdir ../ --assemblies Stck.Tests/bin/**/*.dll --sources Stck/**/*.fs
- # Reset hits count in case minicover was run for this project
- dotnet minicover reset
- # Run tests
- dotnet xunit -nobuild --fx-version 2.0.0
- # Uninstrument assemblies, it's important if you're going to publish or deploy build outputs
- dotnet minicover uninstrument --workdir ../
- # Create html reports inside folder coverage-html
- dotnet minicover htmlreport --workdir ../ --threshold 90
- # Print console report
- # This command returns failure if the coverage is lower than the threshold
- dotnet minicover report --workdir ../ --threshold 90
- # Create a NCover-formatted XML report
- dotnet minicover xmlreport --workdir ../ --threshold 90
- # Create a OpenCover-formatted report
- dotnet minicover opencoverreport --workdir ../ --threshold 90# Create a OpenCover-formatted report
- dotnet minicover opencoverreport --workdir ../ --threshold 90
Add Comment
Please, Sign In to add comment