mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Add code coverage
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
<TargetFramework>net45</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
<CollectCoverage>true</CollectCoverage>
|
||||
<CoverletOutputFormat>opencover</CoverletOutputFormat>
|
||||
<CoverletOutput>bin/$(Configuration)/Coverage.xml</CoverletOutput>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -12,6 +15,10 @@
|
||||
<PackageReference Include="NUnit" Version="3.12.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
|
||||
<PackageReference Include="CliWrap" Version="2.3.0" />
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.6.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||
<DocumentationFile>bin/$(Configuration)/$(TargetFramework)/$(AssemblyName).xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,7 +1,8 @@
|
||||
# CliFx
|
||||
|
||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx)
|
||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx)
|
||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx/branch/master)
|
||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx/branch/master/tests)
|
||||
[](https://codecov.io/gh/Tyrrrz/CliFx)
|
||||
[](https://nuget.org/packages/CliFx)
|
||||
[](https://nuget.org/packages/CliFx)
|
||||
[](https://patreon.com/tyrrrz)
|
||||
|
||||
@@ -9,8 +9,11 @@ before_build:
|
||||
build:
|
||||
verbosity: minimal
|
||||
|
||||
after_test:
|
||||
- choco install codecov && codecov -f "CliFx.Tests/bin/%CONFIGURATION%/Coverage.xml" --required
|
||||
|
||||
artifacts:
|
||||
- path: CliFx\bin\$(configuration)\CliFx*.nupkg
|
||||
- path: CliFx/bin/$(configuration)/CliFx*.nupkg
|
||||
name: CliFx.nupkg
|
||||
|
||||
deploy:
|
||||
|
||||
Reference in New Issue
Block a user