Skip to content

Commit af2fc2d

Browse files
authored
Merge pull request #74 from xt0rted/coverage-folder
Drop the dot from the coverage folder name
2 parents 7f5f591 + b766c08 commit af2fc2d

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
if: always()
7171
with:
7272
name: test-results
73-
path: ./.coverage/*.trx
73+
path: ./coverage/*.trx
7474

7575
integration:
7676
needs: build
@@ -157,7 +157,7 @@ jobs:
157157
if: always()
158158
with:
159159
name: integration-test-results
160-
path: ./.coverage/*.trx
160+
path: ./coverage/*.trx
161161

162162
- run: dotnet r integration:ci --verbose -- --logger "trx;LogFilePrefix=ci test"
163163

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
if: always()
5757
with:
5858
name: test-results
59-
path: ./.coverage/*.trx
59+
path: ./coverage/*.trx
6060

6161
- name: Upload release assets
6262
uses: softprops/action-gh-release@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,6 @@ FodyWeavers.xsd
399399

400400
# Verify snapshots
401401
*.received.*
402+
403+
# Test results
404+
*.trx

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ When .NET Core introduced the `dotnet` cli it became easier to do these things,
88
A great example of this is collecting code coverage of unit tests with [Coverlet](https://github.com/coverlet-coverage/coverlet).
99

1010
```shell
11-
> dotnet test --configuration Debug --verbosity minimal --no-build --collect:"XPlat Code Coverage" --results-directory "./.coverage"
11+
> dotnet test --configuration Debug --verbosity minimal --no-build --collect:"XPlat Code Coverage" --results-directory "./coverage"
1212
```
1313

1414
Now this can be configured in your `global.json` like so:

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
//"scriptShell": "pwsh",
66
"scripts": {
77
// project scripts
8-
"clean": "dotnet rimraf artifacts .coverage",
8+
"clean": "dotnet rimraf artifacts coverage",
99
"clean:bin": "dotnet rimraf **/bin **/obj",
1010
"prebuild": "dotnet r clean",
1111
"build": "dotnet build",
12-
"test": "dotnet test --no-build --logger \"trx;LogFilePrefix=tests\" --results-directory \"./.coverage\"",
12+
"test": "dotnet test --no-build --logger \"trx;LogFilePrefix=tests\" --results-directory \"./coverage\"",
1313
"test:31": "dotnet r test -- --framework netcoreapp3.1",
1414
"test:5": "dotnet r test -- --framework net5.0",
1515
"test:6": "dotnet r test -- --framework net6.0",
1616

17-
"testbase": "dotnet test --no-build --logger \"trx;LogFilePrefix=tests\" --results-directory \"./.coverage\"",
17+
"testbase": "dotnet test --no-build --logger \"trx;LogFilePrefix=tests\" --results-directory \"./coverage\"",
1818
"test:unit": "dotnet r testbase -- --filter \"category=unit\"",
1919
"test:int": "dotnet r testbase -- --filter \"category=integration\"",
2020

0 commit comments

Comments
 (0)