tutorial and resources for AngularJS Karma
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
Utpal
I am a software professional with more than three years experience in .net development.I am holding a GNIIT degree and presently pursuing my MCA final semester. I am also a Microsoft Certified Professional.
Updated on June 14, 2022Comments
-
Utpal almost 2 years
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.
-
Utpal about 10 yearsthanks for your reply but I want to know more about how to test controller and factories in angularjs. Specialy how to test the backend webservices. Can you please help me on that.
-
Jorge Guerola about 10 yearsCheck the first article, its really explicit. For test backend webservices you should use fake data with $httpbackend docs.angularjs.org/api/ngMock/service/$httpBackend
-
A F over 9 yearsThat yearofmoo.com article is really out of date and the depednencies don't resolve currectly. github.com/yearofmoo-articles/AngularJS-Testing-Article/issues