Search code examples
unit-testingtestingcordovasencha-touchextjs

Sencha Touch unit testing best practice?


I would like to do unit testing on my Sencha Touch application, I have found plenty of information online, but not any promising guide that was worth following.

Are there any resources to recommend? I am keen on using QUnit, could you please provide me with any example? (E.g. how could I test that a class that inherits from Ext.Panel has been created?)


Solution

  • Sencha have written an article on unit testing here, it's geared towards Ext JS but I'm sure you can adapt it to Sencha Touch.