Slideshow



Slideshow

0 1


slides-karma-unittest-2013

Slides for JS unittest with karma

On Github homburg / slides-karma-unittest-2013

Karma runner

JS Unittest featuring AngularJS

What?

A simple tool that allows you to execute JavaScript code in multiple real browsers, powered by Node.js and Socket.io.

What else?

Testing framework

Jasmine (by default)

describe("My project", function () {

  describe("my function", function () {
  
    it("should do something", function () {
      // ...
    });
  };
  
});

AngularJS

Dependency injection

app.controller(function (myService) {
  myService.call("Hey!");
});

app.filter(function (myService) {
  return function (input) {
    return myService.flob(input);
  });
});