Skip to content

Commit 0a12ad0

Browse files
Change dotCover command and add support for Junit Logger (#46)
This is a required fix after changing the code cover tool to JetBrains.dotCover.CommandLineTools.
1 parent 1884a0d commit 0a12ad0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
command: |
4747
sudo timedatectl set-timezone America/New_York
4848
export PATH="$PATH:$HOME/.dotnet/tools"
49-
dotnet dotcover test \
50-
--dcOutput=test-results/dotNetCoverage.html \
51-
--dcReportType=HTML \
52-
--dcfilters="-:module=Humanizer;-:module=NuoDb.EntityFrameworkCore.Tests;-:type=JetBrains.*;-:type=System.*;-:type=Microsoft.*" \
49+
dotCover dotnet \
50+
--Output="test-results/dotNetCoverage.html" \
51+
--ReportType="HTML" \
52+
--Filters="-:module=Humanizer;-:module=NuoDb.EntityFrameworkCore.Tests;-:type=JetBrains.*;-:type=System.*;-:type=Microsoft.*" -- test \
5353
NuoDb.EntityFrameworkCore.Tests/NuoDb.EntityFrameworkCore.Tests.csproj \
5454
--logger="junit;LogFilePath=./TestResults/test-results.xml"
5555
- run:

NuoDb.EntityFrameworkCore.Tests/NuoDb.EntityFrameworkCore.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="coverlet.collector" Version="3.2.0" />
18+
<PackageReference Include="JunitXml.TestLogger" Version="6.1.0" />
1819
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.11" />
1920
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.11" />
2021
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="8.0.11" />

0 commit comments

Comments
 (0)