diff --git a/.gitignore b/.gitignore index c1b184a87..32d9c064d 100644 --- a/.gitignore +++ b/.gitignore @@ -45,7 +45,6 @@ DataDir/ # gitleaks scan output (local secret-scan report, not for the repo) /gitleaks-report.json -/test-report.html -/test-report.xml - +# Exclude test reports (local test report, not for the repo) +/test-reports diff --git a/Makefile b/Makefile index e883088c2..dd5207002 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,17 @@ src/Yavsc/bin/output/wwwroot: dotnet --project src/Yavsc.Org/Yavsc.Org.csproj publish test: - ASPNETCORE_ENVIRONMENT=Development dotnet test + ASPNETCORE_ENVIRONMENT=Development dotnet test --report-xunit \ + --report-xunit-html \ + --report-xunit-html-filename "test-results.html" + +test-postit: + ASPNETCORE_ENVIRONMENT=Development dotnet test \ + --report-xunit \ + --report-xunit-html \ + --results-directory "test-reports" \ + --report-xunit-html-filename "postit-test-results.html" \ + --project src/PostIt/PostIt.Tests/PostIt.Tests.csproj watch: dotnet watch -p:Configuration=$(CONFIG) --project src/Yavsc/Yavsc.csproj