Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit f4d6a1d

Browse files
committed
Add code coverage to browser tests
1 parent 521b34c commit f4d6a1d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/sauce.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ jobs:
2323
env:
2424
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
2525
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
26+
- name: Coverage
27+
run: npm run coverage
28+
- name: Codecov
29+
uses: codecov/codecov-action@v1
30+
with:
31+
file: coverage/lcov.info

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"test": "standard && hallmark && (nyc -s node test/self.js | faucet) && nyc report",
1212
"coverage": "nyc report -r lcovonly",
13-
"test-browsers": "airtap --verbose test/self.js > airtap.log",
13+
"test-browsers": "airtap --coverage --verbose test/self.js",
1414
"test-browsers-local": "airtap -p local test/self.js",
1515
"hallmark": "hallmark --fix",
1616
"dependency-check": "dependency-check --no-dev -i queue-microtask .",

0 commit comments

Comments
 (0)