gulp karma issue browser never start -
i have node 4.4.3
npm 3.8.6
protractor: 3.2.2
installed globally gulp 3.9.1
installed globally , locally link
package.json
"devdependencies": { "connect": "3.4.1", "gulp-load-plugins": "1.2.0", "gulp-protractor": "2.1.0", "serve-static": "1.10.2", "karma":"0.13.22", "karma-chrome-launcher": "0.2.3", "karma-jasmine": "0.3.8" }
gulpfile.js
var server = require('karma').server; gulp.task('test3', function (done) { server.start({ configfile: __dirname + '/karma.conf.js' }, done); });
when run task feedback
[11:10:03] starting 'test3'... 21 04 2016 11:10:04.008:warn [karma]: no captured browser, open http://localhost:9876/ 21 04 2016 11:10:04.016:info [karma]: karma v0.13.22 server started @ http://localhost:9876/
then waits forever
when run task "old" way:
var karma = require('karma').server; var karmaconf = require('./karma.conf.js')(); karma.start(karmaconf, done);
it works fine
i have correctly configured karma.conf.js. thanks
ok found karma.conf.js this
module.exports = function () { return {...}; };
and made changes make this
module.exports = function (config) { config.set( { ....
this made work
Comments
Post a Comment