From d7f414413c7259c1f3cb449bbf5773ca9876825c Mon Sep 17 00:00:00 2001 From: Zacchary Dempsey-Plante Date: Sat, 6 Feb 2021 14:56:25 -0500 Subject: [PATCH] Hopefully properly set up code coverage reporting. --- .gitignore | 4 +++- .travis.yml | 6 +++--- RomanizationTests/RomanizationTests.csproj | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4c944e5..3e7ff60 100644 --- a/.gitignore +++ b/.gitignore @@ -123,7 +123,7 @@ $tf/ *.gpState # JetBrains IDEs make a folder for storage of configuration etc -.idea/ +.idea/ # ReSharper is a .NET coding add-in _ReSharper*/ @@ -143,6 +143,8 @@ _TeamCity* # Visual Studio code coverage results *.coverage *.coveragexml +coverage.json +coverage.*.xml # NCrunch _NCrunch_* diff --git a/.travis.yml b/.travis.yml index e2c4579..e468a9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,11 +22,11 @@ before_script: script: - dotnet build RomanizationNet.sln --configuration Release --no-restore -- dotnet test RomanizationTests/RomanizationTests.csproj +- dotnet test //p:CollectCoverage=true //p:CoverletOutputFormat=cobertura RomanizationTests/RomanizationTests.csproj -after_script: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT +after_script: ./cc-test-reporter after-build --input RomanizationTests\coverage.cobertura.xml --coverage-input-type cobertura --exit-code $TRAVIS_TEST_RESULT -before_deploy: echo "Installing docfx..." && wget -q "https://github.com/dotnet/docfx/releases/download/v2.56.4/docfx.zip" && unzip -q -o -d ./docfx docfx.zip +before_deploy: echo "Installing docfx..." && wget -q "https://github.com/dotnet/docfx/releases/download/v2.56.6/docfx.zip" && unzip -q -o -d ./docfx docfx.zip deploy: provider: script diff --git a/RomanizationTests/RomanizationTests.csproj b/RomanizationTests/RomanizationTests.csproj index 22242d3..5b83081 100644 --- a/RomanizationTests/RomanizationTests.csproj +++ b/RomanizationTests/RomanizationTests.csproj @@ -14,6 +14,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive +