Get help with testing, discuss unit testing strategies etc.


Post by Kurt »

I tested Sencha Touch and Siesta without building one large myApp.js
All works fine.

Now I build the /testing/myApp.js and /production/myApp.js and I can't even get the 010_sanity.t.js File to run correct.

this is my preload:
   preload         : [
        isProd ? '../production/resources/css/phone.css' : '../testing/resources/css/phone.css',
        isProd ? '../production/sdk/sencha-touch.js' : '../testing/sdk/sencha-touch.js',
        isProd ? '../production/app.js' : '../testing/app.js',
    ]
The problem is, that Siesta right away starts to run the app.js.
Is there any way to test only parts of the app.js, but still using the testing or produciton app.js?

e.g I would like to jump into myApp.view.SomeView inside the app.js
or activate the controller myApp.controller.SomeController

Post by mats »

This sounds like you want to test individual widgets alone, which to me makes a lot more sense than going for the full blown app.js. That way each test is more about the 'unit' than the whole perspective. Which path did you end up choosing?

Post Reply