Skip to content

Commit ad33fa4

Browse files
authored
chore: put dev-test coverage report in own sub-dir (#618)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 950fc8e commit ad33fa4

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.c8rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"clover": {"file": "coverage.clover.xml"},
2020
"html": {"subdir": "coverage.html"}
2121
},
22-
"reports-dir": "./reports",
22+
"reports-dir": "./reports/coverage",
2323
"temp-directory": "./.c8.cache"
2424
}

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ jobs:
138138
- name: collect coverage
139139
if: ${{ failure() || success() }}
140140
run: >
141-
npx c8 report
142-
--reporter clover
141+
npx c8 report
142+
--reporter clover
143143
--reports-dir '${{ env.REPORTS_DIR }}/coverage/${{ matrix.os }}_node${{ matrix.node-version }}'
144144
- name: artifact test reports
145145
if: ${{ ! cancelled() }}

src/serialize/json/normalize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,11 @@ export class LicenseNormalizer extends BaseJsonNormalizer<Models.License> {
340340
return this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
341341
case data instanceof Models.LicenseExpression:
342342
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
343+
/* c8 ignore start */
343344
default:
344345
// this case is not expected to happen - and therefore is undocumented
345346
throw new TypeError('Unexpected LicenseChoice')
347+
/* c8 ignore end */
346348
}
347349
}
348350

src/serialize/xml/normalize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,11 @@ export class LicenseNormalizer extends BaseXmlNormalizer<Models.License> {
436436
return this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
437437
case data instanceof Models.LicenseExpression:
438438
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
439+
/* c8 ignore start */
439440
default:
440441
// this case is not expected to happen - and therefore is undocumented
441442
throw new TypeError('Unexpected LicenseChoice')
443+
/* c8 ignore end */
442444
}
443445
}
444446

0 commit comments

Comments
 (0)