Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tutorial and resources for AngularJS Karma [closed]

I am going to implementing unit testing in my application and for that I have chosen Karma. But I am struggling regarding how to write the test cases using Karma syntax. Please give me some starting resources and tutorial links regarding Karma syntax.

like image 960
Utpal Avatar asked Feb 18 '14 13:02

Utpal


People also ask

Which of the following command is used to start the test runner in karma?

The ng test command builds the application in watch mode, and launches the Karma test runner.

Is AngularJS code unit testable?

AngularJS is written with testability in mind, but it still requires that you do the right thing. We tried to make the right thing easy, but if you ignore these guidelines you may end up with an untestable application.


1 Answers

My favorites resources for starting karma was those articles

http://www.yearofmoo.com/2013/01/full-spectrum-testing-with-angularjs-and-karma.html

You should also check the jasmine syntax for writing tests at http://jasmine.github.io/

and how to configure karma http://karma-runner.github.io/0.12/config/configuration-file.html

I hope it helps you

like image 122
Jorge Guerola Avatar answered Oct 21 '22 19:10

Jorge Guerola