Skip to content

Commit

Permalink
Testing with working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Apr 19, 2022
1 parent ce1152a commit e142dda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/githubactionsbuilds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
run: dotnet build DeveCoolLib.sln -c Release --no-restore /p:Version=1.0.${{needs.generate_version_number.outputs.build_number}}
- name: dotnet test
#run: dotnet test DeveCoolLib.sln --verbosity normal --no-build -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=\`"cobertura,opencover\`" /p:CoverletOutput=./TestResults/Coverage/
run: dotnet test DeveCoolLib.sln --verbosity normal --no-build -c Release --results-directory:"./DeveCoolLib.Tests/TestResults/Coverage/" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura,opencover
run: dotnet test DeveCoolLib.sln --verbosity normal --no-build -c Release --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura,opencover
- name: SonarQube end
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -115,9 +115,10 @@ jobs:
run: tree /A /F
- name: Run CodeCov #codecov -f ".\DeveCoolLib.Tests\TestResults\Coverage\coverage.opencover.xml"
uses: codecov/codecov-action@v2
working-directory: ./DeveCoolLib.Tests/TestResults
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./DeveCoolLib.Tests/TestResults/Coverage/coverage.opencover.xml # optional
# files: ./DeveCoolLib.Tests/TestResults/Coverage/coverage.opencover.xml # optional
#flags: unittests # optional
#name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
Expand Down

0 comments on commit e142dda

Please sign in to comment.