Book Image

WEB APP TESTING USING KNOCKOUT.JS

By : Roberto Messora
Book Image

WEB APP TESTING USING KNOCKOUT.JS

By: Roberto Messora

Overview of this book

Table of Contents (11 chapters)

Summary


This chapter is a brief introduction to the Jasmine BBD test framework. It's not intended to be an exhaustive reference, but it gives a sufficient comprehension of how it works and how it can help a developer focus on the code behavior.

You learned about the fundamental Jasmine concepts. First of all, you learned how to set up a complete test project using the package downloaded from the project website. Then, we dug into the way the Jasmine API has been designed, and how to express our test in terms of suites, specifications, and expectations.

You also learned that we can create test doubles using spies, and we reviewed all the tracking capabilities that we can take advantage of.

Finally, we discovered how to test asynchronous code explaining how to solve the typical Ajax scenario.

In the next chapter, we will put the two main book topics together. We will try to explain how to test a Knockout.JS web application effectively using Jasmine, not only technically speaking, but also in the...