Skip to content

Commit 0879ec3

Browse files
committed
lib tests cannot run against live services for coverage
1 parent 33118dd commit 0879ec3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ jobs:
4949
DEBUG: 'none'
5050

5151
- name: Run E2E tests
52-
run: REPLAY=bloody npm run coverage
52+
run: REPLAY=bloody npm run test:deprecated
5353
env:
5454
SOURCE_URL: ${{ secrets.SOURCE_URL }}
5555
DEBUG: 'none'
5656

5757
- name: Coveralls
58+
if: success() || failure()
5859
uses: coverallsapp/github-action@master
5960
with:
6061
github-token: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"start": "node ./bin/www.js",
7272
"test": "SOURCE_URL=${SOURCE_URL:-https://public:none@corpusdev.example.org} NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --timeout 100000 --recursive test",
7373
"test:debug": "node-debug _mocha test/integration/oauth.js",
74-
"test:deprecated": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody mocha --timeout 25000 test/routes/deprecated-spec.js",
74+
"test:deprecated": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody nyc mocha --timeout 25000 test/routes/deprecated-spec.js",
7575
"test:fielddb": "NODE_ENV=localhost jasmine-node node_modules/fielddb/tests",
7676
"test:production": "ls config/production.js",
7777
"watch": "nodemon ./bin/www.js"

0 commit comments

Comments
 (0)