Skip to content

Commit

Permalink
chore: add test coverage (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz committed Feb 28, 2022
1 parent c32e3e0 commit 522e2b4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .codecov/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
codecov:
notify:
require_ci_to_pass: true
coverage:
status:
project:
default:
target: auto
threshold: 5%
comment:
require_changes: true
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
- run: dotnet tool restore
- run: dotnet build /p:TreatWarningsAsErrors=true
- run: dotnet format --no-restore --verify-no-changes
- run: dotnet test --no-build
- run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- uses: codecov/codecov-action@v1
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Mapperly

![Nuget](https://img.shields.io/nuget/v/Riok.Mapperly?style=flat-square)
![GitHub](https://img.shields.io/github/license/riok/mapperly?style=flat-square)

A .NET source generator for generating object mappings.
Inspired by MapStruct.

Expand Down
4 changes: 4 additions & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="1.0.0"/>
<PackageReference Include="Verify.XUnit" Version="16.2.0" />
<PackageReference Include="Moq" Version="4.16.1" />
Expand Down

0 comments on commit 522e2b4

Please sign in to comment.