Deciding on a Testing Platform

There are several different platforms you can use for testing JavaScript applications. Which one you go with might depend on what your engineers are most familiar with, what your budget is, which JavaScript framework you need, or just what you are already using.

These are all very real and important concerns, and you will need to make your decision based on them. That being said, the AngularJS group seems to have gravitated toward Jasmine as their unit test framework. It makes sense. Jasmine is the kind of framework that seems to provide a lot of functionality while not getting in the way of testing. In fact, for end-to-end testing you will need to use Protractor, which uses the Jasmine syntax for testing.

You should take some time to evaluate the framework you decide on, because you will likely be using it for a while. You can get a list of the more well-known JavaScript testing frameworks at Wikipedia: http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#JavaScript.

After you decide on a testing platform, you will need to understand how to implement the various testing concepts, such as pretest buildup work, post-test teardown, and mock objects and services, for the rest of this appendix to make much sense.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset