View Full Version : Sencha Touch, MVC and Jasmine examples

3 May 2011, 4:18 AM
Dear fellow Sencha Touch geeks,

I'm having some trouble with finding any examples of how to test Sencha Touch MVC with Jasmine. As a starter, I've used the example code from a SenchaCon presentation found here: https://twitter.com/#!/tmaintz/status/5370817298829312

By default, the application is stopped from being booted up automatically. This causes code like

in the controller to fail, since viewport is not initialized before Application.launch is called.

Ext.regApplication('MyApp', {
defaultTarget: 'viewport',
defaultUrl: 'Login/index',
name: 'MyApp',

launch: function() {
this.viewport = new MyApp.Viewport({
application: this

If we enable booting of the application, the app is rendered in the test runner.

I'm wondering if there are any examples/best practices for how to test a Sencha Touch MVC application?


14 Jun 2011, 4:49 AM
I'm also interested in a tutorial for the Sencha Touch integrated jasmine tests...
IMHO this is not very well documented :(

14 Jun 2011, 6:32 AM
posted this question in the premium help forum too...

28 Aug 2011, 7:56 PM
Any news?
Please post links to some Sencha Touch + Jasmine code here.
Thank you.