Skip to content

Commit 4193097

Browse files
authored
Merge pull request #57 from bingenito/test-coverage
Add test coverage with nyc and coverage thresholds
2 parents f6f7739 + 4b30bbd commit 4193097

File tree

4 files changed

+1693
-20
lines changed

4 files changed

+1693
-20
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Codecov
3030
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
3131
with:
32-
directory: ./build/coverage
32+
directory: ./coverage
3333
flags: unittests
3434
fail_ci_if_error: false
3535
token: ${{ secrets.CODECOV_TOKEN }}

.nycrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"lib/**/*.js"
5+
],
6+
"exclude": [
7+
"tests/**/*.js"
8+
],
9+
"reporter": [
10+
"lcov",
11+
"text",
12+
"text-summary"
13+
],
14+
"report-dir": "./coverage",
15+
"temp-dir": "./coverage/.nyc_output",
16+
"check-coverage": true,
17+
"per-file": false,
18+
"lines": 95,
19+
"statements": 95,
20+
"functions": 95,
21+
"branches": 80
22+
}

0 commit comments

Comments
 (0)