Skip to content

Commit

Permalink
chore: Re-enable tests for generators in CI (#1008)
Browse files Browse the repository at this point in the history
* Re-enable tests for generators in CI

* Fix test script

* Fix some generator settings

* Update Travis scripts

* Stream generator test outputs so tests do not time out
  • Loading branch information
daffl authored Sep 17, 2018
1 parent 1380bb3 commit a13929c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
sudo: false
language: node_js
install: npm install
script:
- npm test
- npm run test:generators
services: mongodb
node_js:
- node
- '6'
addons:
rethinkdb: 2.3
code_climate:
repo_token: 9840b8b56f6d10209b3478d41f7ba5102d02981435df129bb18554a529359c62
before_script:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"scripts": {
"install": "lerna bootstrap",
"lint": "semistandard packages/**/*.js --fix",
"test": "npm run lint && nyc lerna run test --ignore generator-**"
"test": "npm run lint && nyc lerna run test --ignore generator-**",
"test:generators": "lerna run test --scope generator-** --stream --concurrency 1"
},
"semistandard": {
"env": [
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "git://github.com/feathersjs/feathers.git"
},
"scripts": {
"test": "../../node_modules/.bin/mocha"
"test": "../../node_modules/.bin/mocha --opts ../../mocha.opts"
},
"dependencies": {
"yeoman-generator": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers-plugin/test/test-creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('feathers-plugin generator', function () {
name: 'feathers-tmp',
repository: 'feathersjs/feathers-tmp',
description: 'Plugin description here',
client: true
client: false
})
.on('end', function () {
assert.ok(fs.existsSync(path.join(tmpDir, '.npmignore')));
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-feathers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"node": ">= 6.0.0"
},
"scripts": {
"test": "../../node_modules/.bin/mocha"
"test": "../../node_modules/.bin/mocha --opts ../../mocha.opts --timeout 30000"
},
"dependencies": {
"@feathersjs/jscodeshift": "^0.5.0",
Expand Down

0 comments on commit a13929c

Please sign in to comment.