This action runs coverlet coverage tool on a dotnet core solution
Required Path to the tests :
- the path to the unit test project (relative to the repository root) e.g.
testProject/testProject.csproj
. - A solution file in which case all test projects included in the solution will be run.
⚠️ When using a solution coverage threshold will not be checked.
Required name of the coverage output file.
Required format of the output coverage file (lcov,cobertura, ...) see coverlet documentation : Coverage Output
assemblies and namespaces exclusions for coverage : see coverlet documentation Filters
Filters must be separated with a ',' (comma).
example : [filteredAssembly1]*,[filteredAssembl2]namespace2.*
Minimum coverage percent on all changes to your project below which build will fail.
example : 80
if true , produces extra debug output. Optional, false is default
path to the generated coverage file. can be used to send data to coveralls for example.
uses: b3b00/coverlet-action@1.2.5
with:
testProject: 'myProjectTests/myProjectTests.csproj'
output: 'lcov.info'
outputFormat: 'lcov'
excludes: '[program]*,[test]test.*'
threshold: 80
- name : coverlet
uses: b3b00/coverlet-action@1.2.5
with:
testProject: 'myProjectTests/myProjectTests.csproj'
output: 'lcov.info'
outputFormat: 'lcov'
excludes: '[program]*,[test]test.*'
- name: coveralls
uses: coverallsapp/github-action@v1.1.1
with:
github-token: ${{secrets.GITHUB_TOKEN }}
path-to-lcov: ${{steps.coverlet.outputs.coverageFile}}