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>
|
<TargetFramework>net45</TargetFramework>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
|
<CollectCoverage>true</CollectCoverage>
|
||||||
|
<CoverletOutputFormat>opencover</CoverletOutputFormat>
|
||||||
|
<CoverletOutput>bin/$(Configuration)/Coverage.xml</CoverletOutput>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -12,6 +15,10 @@
|
|||||||
<PackageReference Include="NUnit" Version="3.12.0" />
|
<PackageReference Include="NUnit" Version="3.12.0" />
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
|
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
|
||||||
<PackageReference Include="CliWrap" Version="2.3.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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
<DocumentationFile>bin/$(Configuration)/$(TargetFramework)/$(AssemblyName).xml</DocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
# CliFx
|
# CliFx
|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx)
|
[](https://ci.appveyor.com/project/Tyrrrz/CliFx/branch/master)
|
||||||
[](https://ci.appveyor.com/project/Tyrrrz/CliFx)
|
[](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://nuget.org/packages/CliFx)
|
[](https://nuget.org/packages/CliFx)
|
||||||
[](https://patreon.com/tyrrrz)
|
[](https://patreon.com/tyrrrz)
|
||||||
|
|||||||
@@ -9,8 +9,11 @@ before_build:
|
|||||||
build:
|
build:
|
||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
|
||||||
|
after_test:
|
||||||
|
- choco install codecov && codecov -f "CliFx.Tests/bin/%CONFIGURATION%/Coverage.xml" --required
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: CliFx\bin\$(configuration)\CliFx*.nupkg
|
- path: CliFx/bin/$(configuration)/CliFx*.nupkg
|
||||||
name: CliFx.nupkg
|
name: CliFx.nupkg
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user