AngularJS - Karma (e2e) : Executed 0 of 0 ERROR -
i experiencing problem not solve time, , getting frustrating since don't have idea doing wrong in it. :) appreciated. using requirejs in applications well. trying build; https://github.com/cengizism/base
when try start e2e test on console;
info [karma]: karma v0.10.0 server started @ http://localhost:8080/_karma_/ info [launcher]: starting browser chrome info [chrome 28.0.1500 (mac os x 10.8.4)]: connected on socket id n-0avrlicogs2nwbfgdz chrome 28.0.1500 (mac os x 10.8.4): executed 0 of 0 error (0.208 secs / 0 secs)
my configuration file looks this;
module.exports = function(karma) { 'use strict'; karma.set({ frameworks: ['jasmine', 'ng-scenario'], files: [ 'app/vendors/angular-scenario/angular-scenario.js', 'test/e2e/*.js' ], basepath: '', exclude: [], reporters: ['progress'], port: 8080, runnerport: 9100, colors: true, loglevel: karma.log_info, autowatch: true, browsers: ['chrome'], capturetimeout: 5000, singlerun: false, proxies: { '/': 'http://localhost:9000/' }, urlroot: '/_karma_/', plugins: [ 'karma-jasmine', 'karma-ng-scenario', 'karma-chrome-launcher', 'karma-firefox-launcher', 'karma-phantomjs-launcher' ] }); };
and spec file;
describe('simple e2e test', function() { it('should open front page , check', function() { browser().navigateto('/#/partial1'); sleep(1); expect(element('#test').html()).toequal('hi testuser1'); }); });
maybe you:
to fix it, following line should included in karma.conf.js
exclude: ['app/lib/angular/angular-scenario.js'],
source : https://github.com/angular/angular-phonecat/issues/71
Comments
Post a Comment