Karma skipping tests

1,454 views
Skip to first unread message

kulesh...@gmail.com

unread,
Feb 25, 2014, 8:02:22 AM2/25/14
to karma...@googlegroups.com

Hello,

I'm newbie karma user and i have angularjs web aplication. I'm trying to create simple e2e tests.

My files:

frontend/tests/js/rootCtrl.js:

describe('RootCtrl Test', function() {
    it('should filter results', function() {
      expect(1).toEqual(2);
    });
});


karma-e2e.conf.js:

var sharedConfig = require('./karma-shared.conf');

module.exports = function(config) {
var conf = sharedConfig();

conf.files = conf.files.concat([
'frontend/tests/js/.js'
]);

conf.proxies = {
'/': 'http://localhost:9999/'
};

conf.urlRoot = '/__karma__/';

conf.frameworks = ['ng-scenario'];

config.set(conf);
};

and  karma-shared.conf.js:

module.exports = function() {
return {
basePath: '../',
frameworks: ['ng-scenario'],
browsers: ['Chrome'],

// these are default values anyway
colors: true,

files : [

//
//3rd Party Code
//
'frontend/static/lib/angular/angular.min.js',
'frontend/static/lib/angular/angular-route.js',

.....

.....

]};


I'm trying to running this with: karma start test/karma-e2e.conf.js, after runnin chrome browser opens and see there:

0 Passed, 0 Failures, 0 Errors

Why karma doesn't execute tests?




Vojta Jína

unread,
Feb 28, 2014, 1:31:07 PM2/28/14
to karma...@googlegroups.com
If you are starting, please check out Protractor for e2e testing: https://github.com/angular/protractor

Karma is primarily focused on unit testing and we don't maintain the Angular Scenario anymore (which Karma uses for e2e testing).

V.


--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/karma-users/0032dea8-c4e4-4bd7-b340-519e15ba244d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

lahlo...@gmail.com

unread,
Feb 9, 2016, 2:18:08 PM2/9/16
to karma-users, kulesh...@gmail.com

Hi,

 

Have you found a solution? I have The Same Probleme


Thanks 
Reply all
Reply to author
Forward
0 new messages