[WIP] Improve test setup (#1372)
* Run tests serially. * Make test result verbose. * Don't wait until closing the browser. * Add some debug logs. * Add bailing support. * Get the browser with a timeout. * Add some comments. * Remove istanbul babel tranformation. Jest already do it and it's breaking our coveralls hit.
Showing
| ... | @@ -28,8 +28,8 @@ | ... | @@ -28,8 +28,8 @@ |
| "pretestonly": "fly pretest", | "pretestonly": "fly pretest", | ||
| "testonly": "cross-env NODE_PATH=test/lib jest \\.test.js", | "testonly": "cross-env NODE_PATH=test/lib jest \\.test.js", | ||
| "posttestonly": "fly posttest", | "posttestonly": "fly posttest", | ||
| "pretest": "npm run lint && cross-env NODE_ENV=test-build npm run release", | "pretest": "npm run lint", | ||
| "test": "npm run testonly -- --coverage --forceExit", | "test": "npm run testonly -- --coverage --forceExit --runInBand --verbose --bail", | ||
| "coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls", | "coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls", | ||
| "lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'", | "lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'", | ||
| "prepublish": "npm run release", | "prepublish": "npm run release", | ||
| ... | @@ -90,7 +90,7 @@ | ... | @@ -90,7 +90,7 @@ |
| "devDependencies": { | "devDependencies": { | ||
| "babel-eslint": "7.1.1", | "babel-eslint": "7.1.1", | ||
| "babel-jest": "18.0.0", | "babel-jest": "18.0.0", | ||
| "babel-plugin-istanbul": "3.0.0", | "babel-plugin-istanbul": "4.0.0", | ||
| "babel-plugin-transform-remove-strict-mode": "0.0.2", | "babel-plugin-transform-remove-strict-mode": "0.0.2", | ||
| "babel-preset-es2015": "6.22.0", | "babel-preset-es2015": "6.22.0", | ||
| "benchmark": "2.1.3", | "benchmark": "2.1.3", | ||
| ... | ... |
Please
register
or
sign in
to comment