Codecov 1.6.1

Suggested Alternatives

CodecovUploader

There is a newer version of this package available.
See the version list below for details.
dotnet add package Codecov --version 1.6.1
NuGet\Install-Package Codecov -Version 1.6.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Codecov" Version="1.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codecov --version 1.6.1
#r "nuget: Codecov, 1.6.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Codecov as a Cake Addin
#addin nuget:?package=Codecov&version=1.6.1

// Install Codecov as a Cake Tool
#tool nuget:?package=Codecov&version=1.6.1

Codecov global executable uploader for .NET Framework/Core based builds.

https://codecov.io/ @codecov hello@codecov.io

Introduction

Build status NuGet Chocolatey Gitter codecov

  1. This uploader supports Windows 7 (x64) and above, Linux (x64), and OS X (x64).

  2. The following Services are supported: AppVeyor, Azure Pipelines, TeamCity (see section on TeamCity), and Git.

  3. Many Codecov CLI options are supported. Run .\codecov.exe --help or see CommandLineOptions.cs for more details.

  4. On windows you can download the exe from NuGet or Chocolatey. There is also the .Net tool called Codecov.Tool which supports all platforms. As an alternative to NuGet or Chocolatey you can download the exe as the asset Codecov-{os}.zip under the release. The following PowerShell (version 5) commands might be helpful.

(New-Object System.Net.WebClient).DownloadFile("<url>", (Join-Path $pwd "Codecov.zip")) # Download Codecov.zip from github release.
Expand-Archive .\Codecov.zip -DestinationPath . # UnZip the file.
.\Codecov\codecov.exe # Run codecov.exe with whatever commands you need.

Quick Start

For a basic use case, in PowerShell run the following commands,

> choco install codecov
> .\codecov.exe -f <path to coverage report> -t <Codecov upload token>

For an AppVeyor build, the appveyor.yml file would look something like

before_build:
- choco install codecov
test_script:
# Note that, a Codecov upload token is not required.
- codecov -f <path to coverage report>

Cake Addin

If you use Cake (C# Make) for your builds, you may be intrested in the Cake.Codecov addin.

TeamCity

TeamCity does not automatically make build parameters available as environment variables. You will need to add the following environment parameters to the build configuration. To do this make sure your Branch specification under the VCS Root is configured correctly,

<p> <img src="./Images/branch-spec.png" width="1000em"/> </p>

Then set your environment variables,

<p> <img src="./Images/envs.png" width="1000em"/> </p>

Note that, the above environment variables (except for env.TEAMCITY_BUILD_URL) can alternatively be set via the command line,

env.TEAMCITY_BUILD_BRANCH => --branch
env.TEAMCITY_BUILD_ID => --build
env.TEAMCITY_BUILD_COMMIT => --sha
env.TEAMCITY_BUILD_REPOSITORY => --slug

Questions and Contributions

All types of contributions are welcome! Feel free to open an issue or contact us through the gitter channel mentioning either @larzw or @AdmiringWorm.

Known Issues

  • Specifiyng file paths with spaces is currently not possible without a workaround. This is expected to be fixed when a new major release of codecov-exe is released (See issue #71 for possible workaround and tracking).

Maintainers

To create a relase, please do the following:

  • Push the latest changes to the master branch on github
  • Navigate to the release page and view the drafted release.
  • Make any necessary changes.
  • Publish the draft release on GitHub, targeting the master branch.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Codecov:

Package Downloads
Database.MongoDB.Migration

Package Description

GitHub repositories (14)

Showing the top 5 popular GitHub repositories that depend on Codecov:

Repository Stars
dotnet/machinelearning
ML.NET is an open source and cross-platform machine learning framework for .NET.
dotnet/winforms
Windows Forms is a .NET UI framework for building Windows desktop applications.
github/VisualStudio
GitHub Extension for Visual Studio
dotnet/roslyn-analyzers
UglyToad/PdfPig
Read and extract text and other content from PDFs in C# (port of PDFBox)
Version Downloads Last updated
1.13.0 101,197 2/16/2021
1.12.4 5,982 1/12/2021
1.12.3 17,487 9/7/2020
1.12.2 5,081 8/17/2020
1.12.1 7,082 7/10/2020
1.12.0 9,967 6/23/2020
1.11.2 3,095 6/21/2020
1.11.1 5,101 6/10/2020
1.11.0 2,724 6/10/2020
1.10.0 70,151 2/1/2020
1.9.0 37,509 11/14/2019
1.8.0 5,115 10/31/2019
1.7.2 18,205 8/16/2019
1.7.1 12,610 8/2/2019
1.7.0 7,526 7/28/2019
1.6.1 6,994 7/16/2019
1.6.0 3,966 7/15/2019
1.5.0 19,295 5/5/2019
1.4.0 6,211 4/7/2019
1.3.0 3,843 2/28/2019
1.2.0 9,154 2/6/2019
1.1.1 40,332 1/10/2019
1.1.0 50,826 9/12/2018
1.0.5 21,548 7/1/2018
1.0.4 9,413 6/17/2018
1.0.3 61,404 8/11/2017
1.0.2 3,000 8/7/2017
1.0.1 25,222 6/3/2017
1.0.0 5,978 5/25/2017
0.4.0-beta 2,309 4/10/2017
0.3.0-beta 2,694 3/29/2017
0.2.0-beta 1,461 3/7/2017
0.1.0-beta 1,518 2/21/2017

All release notes for Codecov can be found on the GitHub site - https://github.com/codecov/codecov-exe/releases/tag/1.6.1