Skip to content

Commit 4b56dc6

Browse files
authored
Merge pull request #629 from fortran-lang/gnikit/issue613
fix(cov): hitting mocha timeout creates wrong cov
2 parents e0f8851 + b862706 commit 4b56dc6

File tree

8 files changed

+515
-18
lines changed

8 files changed

+515
-18
lines changed

.github/workflows/main.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,31 @@ jobs:
2525
uses: GabrielBB/xvfb-action@v1
2626
with:
2727
run: npm test
28+
29+
coverage:
30+
strategy:
31+
matrix:
32+
os: [ubuntu-latest]
33+
node-version: [18.x]
34+
fail-fast: false
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Use Node.js ${{ matrix.node-version }}
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
43+
- name: Installing Extension
44+
run: npm ci
45+
46+
- name: Coverage report
47+
uses: GabrielBB/xvfb-action@v1
48+
with:
49+
run: npm run coverage
50+
51+
- name: Upload coverage to Codecov
52+
uses: codecov/codecov-action@v3
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
fail_ci_if_error: true

.nycrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"all": true,
3+
"include": ["out/**/*.js"],
4+
"exclude": ["**/node_modules/**", "out/test/**"],
5+
"reporter": ["html", "text", "lcov"]
6+
}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
node_modules
44
.vscode-test
5+
coverage
56
dist
67
out

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Added
1111

12+
- Added coverage reporting using `c8`
13+
([#613](https://github.com/fortran-lang/vscode-fortran-support/issues/613))
1214
- Added support for enhanced `gfotran` v11+ diagnostics using `-fdiagnostics-plain-output`
1315
([#523](https://github.com/fortran-lang/vscode-fortran-support/issues/523))
1416
- Added language icons for Free and Fixed form Fortran

coverconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)