Skip to content

Commit 1c1d3e9

Browse files
committed
Merge pull request #1541 from sharwell/codecov
Add codecov.io code coverage
2 parents 887601e + ea9fadb commit 1c1d3e9

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.nuget/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="NuGet.CommandLine" version="2.8.3" />
4+
<package id="OpenCover" version="4.6.166" />
45
</packages>

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
[![Build status](https://ci.appveyor.com/api/projects/status/8jw2lq431kgg44jl/branch/master?svg=true)](https://ci.appveyor.com/project/sharwell/stylecopanalyzers/branch/master)
66

7+
[![codecov.io](http://codecov.io/github/DotNetAnalyzers/StyleCopAnalyzers/coverage.svg?branch=master)](http://codecov.io/github/DotNetAnalyzers/StyleCopAnalyzers?branch=master)
8+
79
This repository contains an implementation of the StyleCop rules using the .NET Compiler Platform. Where possible, code fixes are also provided to simplify the process of correcting violations.
810

911
## Using StyleCop.Analyzers

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ install:
77
before_build:
88
- nuget restore
99
build:
10+
project: StyleCopAnalyzers.sln
1011
verbosity: minimal
12+
test_script:
13+
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\stylecopanalyzers\StyleCop.Analyzers\StyleCop.Analyzers.Test\bin\Debug\StyleCop.Analyzers.Test.dll -noshadow -appveyor" -filter:"+[StyleCop*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\StyleCopAnalyzers_coverage.xml
14+
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
15+
- pip install codecov
16+
- codecov -f "StyleCopAnalyzers_coverage.xml"
1117
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
1218
cache:
1319
- packages -> **\packages.config

0 commit comments

Comments
 (0)