Skip to content

Commit 13ba602

Browse files
committed
Moved test result and coverage files so that they are ignored by the code analysis
1 parent 9720686 commit 13ba602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
before_script:
2222
- export PATH="$PATH:$HOME/.dotnet/tools"
2323
env:
24-
- TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/TestResults
24+
- TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/bin
2525
script:
2626
- |
2727
dotnet sonarscanner begin \
2828
/k:"$SONAR_PROJECT_KEY" \
2929
/d:sonar.organization="$SONAR_ORGANIZATION_KEY" \
3030
/d:sonar.host.url="$SONAR_URL" \
3131
/d:sonar.login="$SONAR_TOKEN" \
32-
/d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/results.trx" \
32+
/d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/tests.trx" \
3333
/d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml"
34-
- dotnet test -c Release -l:"trx;LogFileName=results.trx" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="TestResults/coverage.xml"
34+
- dotnet test -c Release -l:"trx;LogFileName=tests.trx" -r:"bin/" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="bin/coverage.xml"
3535
- dotnet publish -c Release
3636
- dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"

0 commit comments

Comments
 (0)