Commit 0d4ed96 1 parent 5225c01 commit 0d4ed96 Copy full SHA for 0d4ed96
File tree 4 files changed +9
-5
lines changed
PhoneNumbers.Extensions.Test
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -205,3 +205,6 @@ testgeocoding.zip
205
205
206
206
# Performance tests artifacts
207
207
csharp /PhoneNumbers.PerformanceTest /BenchmarkDotNet.Artifacts /
208
+
209
+ # Coverage reports
210
+ coverage /
Original file line number Diff line number Diff line change @@ -24,16 +24,13 @@ branches:
24
24
- main
25
25
before_build :
26
26
- dotnet restore csharp -s https://api.nuget.org/v3/index.json
27
- - choco install opencover.portable
28
- - choco install codecov
29
27
- ps : Compress-Archive -Path "resources\geocoding\*" -DestinationPath "resources\geocoding.zip"
30
28
- ps : Compress-Archive -Path "resources\test\geocoding\*" -DestinationPath "resources\test\testgeocoding.zip"
31
29
build_script :
32
30
- dotnet pack -c Release csharp\PhoneNumbers
33
31
- dotnet pack -c Release csharp\PhoneNumbers.Extensions
34
32
test_script :
35
- - OpenCover.Console.exe -register:user -target:dotnet.exe -targetargs:"test csharp\PhoneNumbers.sln" -filter:"+[PhoneNumbers]* -[PhoneNumbers.Test]*" -excludebyattribute:*.CompilerGenerated*^ -oldStyle -returntargetcode
36
- - codecov -f results.xml
33
+ - dotnet test csharp/PhoneNumbers.sln --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
37
34
artifacts :
38
35
- path : csharp\PhoneNumbers\bin\Release\libphonenumber-csharp.*
39
36
- path : csharp\PhoneNumbers.Extensions\bin\Release\libphonenumber-csharp.extensions.*
Original file line number Diff line number Diff line change 21
21
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
22
22
<PrivateAssets >all</PrivateAssets >
23
23
</PackageReference >
24
- <PackageReference Include =" coverlet.collector" Version =" 3.2 .0" >
24
+ <PackageReference Include =" coverlet.collector" Version =" 6.0 .0" >
25
25
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
26
26
<PrivateAssets >all</PrivateAssets >
27
27
</PackageReference >
Original file line number Diff line number Diff line change 25
25
<PrivateAssets >all</PrivateAssets >
26
26
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
27
27
</PackageReference >
28
+ <PackageReference Include =" coverlet.collector" Version =" 6.0.0" >
29
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
30
+ <PrivateAssets >all</PrivateAssets >
31
+ </PackageReference >
28
32
</ItemGroup >
29
33
30
34
<ItemGroup >
You can’t perform that action at this time.
0 commit comments