Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?)

like image 375
nosuic Avatar asked Sep 13 '11 15:09

nosuic


2 Answers

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.

like image 90
fetimo Avatar answered Oct 01 '22 19:10

fetimo


Automating Unit Tests: - http://www.sencha.com/blog/automating-unit-tests

UI Testing a Sencha App: - http://www.sencha.com/blog/ui-testing-a-sencha-app/

Building Unit Tests for Sencha Apps: - https://vimeo.com/58665998

I'm not sure anything specific to QUnit has been written (a lot revolves around Jasmine), but the content can be applied to any framework.

like image 28
arthurakay Avatar answered Oct 01 '22 18:10

arthurakay