From 8bf1e74c882c03127bbb417c43f6e364cf6d4c77 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Wed, 22 May 2024 01:45:05 -0400 Subject: [PATCH] [CONFIG] ReportGenerator reconfigured. Target directory moved. Makefile action for coverage and coverage/html added. Makefile clean updated. --- .gitignore | 2 +- .snyk | 2 +- Makefile | 7 +++++-- .../algorithm-exercises-csharp-test.csproj | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 3f9fd4a..115aeb8 100644 --- a/.gitignore +++ b/.gitignore @@ -142,4 +142,4 @@ coverage.opencover.xml coverage.info coverage.json lcov.info -html-coverage-report/* +coverage-report/* diff --git a/.snyk b/.snyk index d8655ed..5a904dd 100644 --- a/.snyk +++ b/.snyk @@ -3,4 +3,4 @@ --- exclude: global: - - html-coverage-report/** + - coverage-report/** diff --git a/Makefile b/Makefile index 3df9a06..2147745 100644 --- a/Makefile +++ b/Makefile @@ -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: @@ -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 diff --git a/algorithm-exercises-csharp-test/algorithm-exercises-csharp-test.csproj b/algorithm-exercises-csharp-test/algorithm-exercises-csharp-test.csproj index f125edf..3bedb11 100644 --- a/algorithm-exercises-csharp-test/algorithm-exercises-csharp-test.csproj +++ b/algorithm-exercises-csharp-test/algorithm-exercises-csharp-test.csproj @@ -44,7 +44,8 @@ - +