Top "Karma-runner" questions

Karma provides developers a testing environment where they don't have to set up many things, rather just write code and get instant feedback in order to improve productivity and creativity.

Javascript.confirm() and Angularjs Karma e2e test

I have an Angularjs application that uses simple javascript confirm before executing some actions. Controller: function TokenController($scope) { $scope.token = …

angularjs jasmine karma-runner angularjs-e2e
Big JS app testing - avoiding multiple karma.conf.js files

I use karma + jasmine + phantom for my headless Javascript tests. The problem I have is that I have a really …

javascript testing gruntjs karma-runner
Mocha unit tests running with Karma - done() is not defined

I'm trying to get tests written with Mocha to work running Karma, and they sort of work, but I cannot …

javascript unit-testing mocha.js karma-runner karma-mocha
How to add jquery to jasmine/angularjs unittests

I have a project which is builded on plain angular.js code. We creates unittest with jasmine. But now we …

javascript angularjs angular-ui karma-runner
AngularJS + Karma + Ng-html2js => Failed to instantiate module ...html

I can't make Karma working for directives that have external templates. Here is my karma configuration file : preprocessors: { 'directives/loading/…

templates angularjs testing directive karma-runner
Exclude function (not an entire file) from JavaScript code coverage

I'm creating some unit tests with Jasmine and the test runner I'm using is Karma. I'm also checking the code …

jasmine karma-runner istanbul
Unit testing a directive that defines a controller in AngularJS

I'm trying to test a directive using Karma and Jasmine that does a couple of things. First being that it …

unit-testing angularjs controller directive karma-runner
Expect not toThrow function with arguments - Jasmine

I have function that gets 3 arguments. I want to check that this function not throwing an error. I did something …

javascript testing jasmine karma-runner karma-jasmine
How can we test non-scope angular controller methods?

We have few methods in Angular Controller, which are not on the scope variable. Does anyone know, how we can …

angularjs jasmine karma-runner angularjs-controller angularjs-http