Skip to content

Commit 5aed25f

Browse files
committed
chore: Add code coverage for JS
1 parent 40a80d5 commit 5aed25f

File tree

5 files changed

+2682
-17
lines changed

5 files changed

+2682
-17
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ jobs:
1717
run: npm ci
1818
- name: Run tests
1919
run: npm run unit
20+
- name: Upload coverage to codecov
21+
if: >-
22+
${{
23+
! github.event.schedule &&
24+
github.repository_owner == 'pytest-dev'
25+
}}
26+
uses: codecov/codecov-action@v3
27+
with:
28+
fail_ci_if_error: true
29+
files: ./cobertura-coverage.xml
30+
flags: js_tests
31+
name: "NodeJS 16.x"
32+
verbose: true
2033

2134
test_unit:
2235
name: ${{ matrix.os }} - ${{ matrix.python-version }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dist
99
# Codecov
1010
.coverage
1111
coverage.xml
12+
cobertura-coverage.xml
1213

1314
# IDE Specific files/folders
1415
## Pycharm IDE - Jetbrains
@@ -53,3 +54,5 @@ docs/_build/
5354

5455
*.html
5556
assets/
57+
58+
.nyc_output

.nycrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"report-dir": ".",
3+
"reporter": ["cobertura"],
4+
"exclude": ["testing/**"]
5+
}

0 commit comments

Comments
 (0)