AngularJS Testing: Protractor, Karma, Jasmine in a Yeoman App – Stack Overflow

  • Karma is a test-runner, so it runs your test.
  • It combines WebDriverJS with Jasmine and lets you write End-to-End tests (you simulate a real browser and taking real actions) with Jasmine syntax.
  • The kind of test is also really important in a web app.

Read the full article, click here.


@MoxFulder: “AngularJS Testing: What should you test ?”


It installs three testing applications: Jasmine, Karma , Protractor
According to this article (Should I be using Protractor or Karma for my end-to-end testing?), I should use: Karma for small tests of e.g. a single controller. Protactor if I want to test the whole app and simulate an user browsing through my app. According to this blog (http://andyshora.com/unit-testing-best-practices-angularjs.html) I would use Jasmine for unit testing and Karma for end-to-end integration tests.


AngularJS Testing: Protractor, Karma, Jasmine in a Yeoman App – Stack Overflow

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.