Skip to content

Commit

Permalink
chore: Organize tests (#292)
Browse files Browse the repository at this point in the history
* chore: Organize tests.

* chore: Install Coveralls only on Travis.
  • Loading branch information
RubenVerborgh authored Oct 31, 2020
1 parent 1a45b65 commit 73a56d8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 36 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@ node_js:
- "10"
- "12"
- "14"
- "lts/*"
- "node"

script:
- npm run build
- npm run lint
- npm run validate
- npm run test
- .travis/validate-package.sh
after_success:
- npm run coveralls
cache: npm
- npm run lint
- npm run validate
- npm run test:unit
- npm run test:integration
- npm run test:deploy

jobs:
allow_failures:
- node_js: "node"
fast_finish: true
include:
- stage: test
name: Coveralls
node_js: "14"
script:
- npm run jest -- --coverage --coverageReporters=text-lcov | npx coveralls
25 changes: 0 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@
"build": "npm run build:ts && npm run build:components",
"build:ts": "tsc",
"build:components": "componentsjs-generator -s src",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"lint": "eslint . --ext .ts --cache",
"prepare": "npm run build",
"start": "node ./bin/server.js -p 3000",
"test": "jest",
"test": "npm run jest",
"jest": "jest",
"test:unit": "jest test/unit",
"test:integration": "jest --coverageThreshold '{}' test/integration",
"test:deploy": "test/deploy/validate-package.sh",
"validate": "componentsjs-compile-config urn:solid-server:default -c config/config-default.json -f > /dev/null",
"version": "manual-git-changelog onversion",
"watch": "nodemon --watch \"src/**/*.js\" --watch \"bin/**/*.js\" --exec npm start"
Expand Down Expand Up @@ -99,7 +102,6 @@
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"componentjs-generator": "^1.1.0",
"coveralls": "^3.1.0",
"eslint": "^7.9.0",
"eslint-config-es": "^3.20.3",
"eslint-import-resolver-typescript": "^2.3.0",
Expand Down
File renamed without changes.

0 comments on commit 73a56d8

Please sign in to comment.