example-csharp
Codecov: C# example repository
File Explorer
Download Latest Version (.zip)- AssemblyInfo.cs
- MyTargetClassTests.cs
- MyUnitTests.csproj
- packages.config
- AssemblyInfo.cs
- MyTargetClass.cs
- UnitTestTargetProject.csproj
- .gitattributes
- .gitignore
- appveyor.yml
- CodecovProject.sln
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/codecov/example-csharp
Downloads the entire project code from GitHub to your computer.
cd example-csharp
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Chocolatey A package manager for Windows.
choco install opencover.portable
Installs directly via Chocolatey (Windows).
choco install xunit
Installs directly via Chocolatey (Windows).
choco install dotnetcore-sdk
Installs directly via Chocolatey (Windows).
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. .NET
MediumPrerequisites
OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:test -filter:"+[UnitTestTargetProject*]* -[MyUnitTests*]*" -output:".\MyProject_coverage.xml" -oldstyle
Type this command into your terminal and run it.
After dotnet run, check the message or address shown in the terminal.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
