Automating Unit Testing
Writing unit tests for JavaScript based applications has been difficult at best and ignored at worst, and ExtJS is no exception. Developers tend to focus exclusively on visual testing of components which tend to get cumbersome, and expensive as projects grow in size. Most automation testing efforts tend to focus on browser specific testing based on the visual aspects of the UI using frameworks like Selenium. While this is definitely important, the product quality can also be enhanced by writing good quality unit tests. This video describes a method to perform unit testing using Jasmine 2.0, ExtJS 5.0.x, leveraging the Sencha Cmd generated application workspace structure, making it easy to write and automate unit tests. It also presents some techniques to generate TestNG style automated tests with fixtures.