make npm testing run with PhantomJS, run in singleRun mode

singleRun: false prevents the tests from completing, as the first
set of tests never exits, so the second set of tests never begins.
pull/303/head
Eric Blade 7 years ago
parent ccd56fc5c2
commit ddeb78e5f8

@ -28,7 +28,6 @@
"grunt-requirejs": "^0.4.2",
"karma": "latest",
"karma-chai": "latest",
"karma-chrome-launcher": "^0.1.12",
"karma-coverage": "^0.3.1",
"karma-mocha": "latest",
"karma-phantomjs-launcher": "^0.1.4",

@ -6,6 +6,7 @@ module.exports = function(config) {
basePath: '',
frameworks: ['mocha', 'chai', 'sinon', 'sinon-chai'],
files: [
'./node_modules/es6-promise/dist/es6-promise.auto.js',
'test/test-main-integration.js',
{pattern: 'test/integration/**/*.js', included: false},
{pattern: 'test/fixtures/**/*.*', included: false}
@ -38,7 +39,7 @@ module.exports = function(config) {
]
},
plugins: [
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-mocha',
'karma-chai',
'karma-sinon',
@ -50,7 +51,7 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_INFO, // LOG_DEBUG
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
browsers: ['PhantomJS'],
singleRun: true
});
};

@ -6,6 +6,7 @@ module.exports = function(config) {
basePath: '',
frameworks: ['source-map-support', 'mocha', 'chai', 'sinon', 'sinon-chai'],
files: [
'./node_modules/es6-promise/dist/es6-promise.auto.js',
'test/test-main.js',
{pattern: 'test/spec/**/*.js', included: false}
],
@ -43,8 +44,7 @@ module.exports = function(config) {
]
},
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-phantomjs-launcher',
'karma-coverage',
'karma-mocha',
'karma-chai',
@ -58,8 +58,8 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
browsers: ['PhantomJS'],
singleRun: true,
coverageReporter: {
type: 'html',
dir: 'coverage/'

3596
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -38,6 +38,7 @@
"chai": "^3.4.1",
"core-js": "^2.4.1",
"cross-env": "^3.1.4",
"es6-promise": "^4.2.4",
"eslint": "^1.10.3",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
@ -50,14 +51,14 @@
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^0.1.7",
"karma-mocha": "~0.2.0",
"karma-phantomjs-launcher": "^0.2.1",
"karma-phantomjs-launcher": "^0.2.3",
"karma-sinon": "^1.0.4",
"karma-sinon-chai": "^1.1.0",
"karma-source-map-support": "^1.1.0",
"karma-webpack": "^1.8.1",
"lolex": "^1.4.0",
"mocha": "^2.3.2",
"phantomjs": "^1.9.18",
"phantomjs": "^2.1.7",
"sinon": "^1.17.7",
"sinon-chai": "^2.8.0",
"webpack": "^2.2.1",

Loading…
Cancel
Save