Skip to content

Commit c9ceb0b

Browse files
Merge pull request #214 from NLog/codecov
CodeCov integration
2 parents ebc4180 + 2e7f29c commit c9ceb0b

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

appveyor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ artifacts:
1212
- path: 'artifacts\*.nupkg'
1313

1414
test_script:
15+
- nuget.exe install OpenCover -ExcludeVersion
16+
- OpenCover\tools\OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp1.1" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
17+
- OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp2.0" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
18+
- pip install codecov
19+
- codecov -f "coverage.xml"
1520
- ps: .\run-tests.ps1
1621

1722
deploy:

examples/NetCore2/ConsoleExample/ConsoleExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
12-
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
12+
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.1" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,11 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.W
7676
<PropertyGroup>
7777
<AssemblyTitle>$(Title)</AssemblyTitle>
7878
</PropertyGroup>
79+
80+
81+
82+
<PropertyGroup>
83+
<DebugType>full</DebugType>
84+
<DebugSymbols>true</DebugSymbols>
85+
</PropertyGroup>
7986
</Project>

test/NLog.Extensions.Logging.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<TargetFrameworks>netcoreapp1.1;netcoreapp2.0;net452;net461</TargetFrameworks>
77
</PropertyGroup>
88

9+
10+
<PropertyGroup>
11+
<DebugType>full</DebugType>
12+
<DebugSymbols>true</DebugSymbols>
13+
</PropertyGroup>
14+
915
<ItemGroup>
1016
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
1117
<PackageReference Include="xunit" Version="2.3.1" />

0 commit comments

Comments
 (0)