Testing tool time with Jasmine
Enough theory! Let's get our hands dirty with some practical examples using the Alcohology app from Chapter 9, A Shopping Application. First, we'll drill down into the guts of the application and build a unit test for some of the key business functionality. Then, we'll jump up to a high-level view and check whether our building blocks integrate correctly.
There are a wealth of tools we can use for both. The Ext JS framework has begun to build a set of unit tests to verify its behavior and cut out regressions in core functionality. To do so, Sencha has chosen the Jasmine library.
Note
Sencha has hinted that there'll be a big announcement surrounding testing alongside SenchaCon 2015. Given that they're already using Jasmine, we can hope that it'll be a good bet for Ext JS application testing in the future.
Jasmine is a behavior-driven framework, a term that relates to the way tests are described. Rather than using the "assertation...