Karma run single test

If you are using the Karma/Jasmine stack, use: fdescribe(“when …”, function () { // to [f]ocus on a single group of tests fit(“should …”, function () {…}); // to [f]ocus on a single test case }); … and: xdescribe(“when …”, function () { // to e[x]clude a group of tests xit(“should …”, function () {…}); … Read more

Can Protractor and Karma be used together?

Not recommended by the current maintainer of Protractor: https://github.com/angular/protractor/issues/9#issuecomment-19927049 Protractor and Karma should not be used together; instead they provide separate systems for running tests. Protractor and Karma cover different aspects of testing – Karma is intended mostly for unit tests, while Protractor should be used for end to end testing. Protractor is built on … Read more