Skip to content

Commit

Permalink
Merge pull request #49 from sir-gon/develop
Browse files Browse the repository at this point in the history
[CONFIG] ReportGenerator reconfigured. Target directory moved. Makefi…
  • Loading branch information
sir-gon authored May 22, 2024
2 parents ccb2fb9 + 8bf1e74 commit c5101d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ coverage.opencover.xml
coverage.info
coverage.json
lcov.info
html-coverage-report/*
coverage-report/*
2 changes: 1 addition & 1 deletion .snyk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
---
exclude:
global:
- html-coverage-report/**
- coverage-report/**
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ build: env dependencies
test: build
${PACKAGE_TOOL} test --verbosity ${VERBOSITY_LEVEL} --collect:"Code Coverage"

coverage: dependencies
coverage: dependencies test
cat coverage-report/Summary.txt

coverage/html: coverage
coverage/html: dependencies test
open coverage-report/index.html

outdated:

Expand All @@ -102,6 +104,7 @@ clean:
${PACKAGE_TOOL} clean --verbosity ${VERBOSITY_LEVEL}

rm -vfr .mono/ || true
rm -vfr coverage-report/ || true
find ${PROJECT_DIRECTORY} -path "*/TestResults/*" -type d -print -exec rm -vfr {} ';' || true
find ${PROJECT_DIRECTORY} -path "*/bin/*" -print -exec rm -vfr {} ';' || true
find ${PROJECT_DIRECTORY} -path "*/obj/*" -print -exec rm -fr {} ';' || true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
</ItemGroup>

<Target Name="GenerateHtmlCoverageReport" AfterTargets="GenerateCoverageResultAfterTest">
<ReportGenerator ReportFiles="@(CoverletReport)" TargetDirectory="../html-coverage-report" />
<ReportGenerator ReportFiles="@(CoverletReport)" TargetDirectory="../coverage-report"
ReportTypes="TextSummary;Html"/>
</Target>

</Project>

0 comments on commit c5101d6

Please sign in to comment.