Get help with testing, discuss unit testing strategies etc.


Post by klodoma »

Hi,

https://www.bryntum.com/blog/testing-an ... encha-cmd/

Is there a up to date or better documentation to test and extjs app generated with Sencha Cmd?

The upper approach works, but it loads the whole app(and + > 300 JS files) every time we run a test. This makes it very slow.

The problem is that sencha cmd lays the files in different structures due to classic/modern approach, so using directly Ext.Loader is not possible.

A possible workaround would be to avoid somehow using the sencha microloader or to tweak it
<script id="microloader" src="/js/sencha/capp/bootstrap.js"></script>
Any ideas here?

Post by nickolay »

Hi,

The guide describes the recommended way of testing Sencha Cmd app, that should work with any app. Perhaps you can do an optimized build so it concatenates all files? That will require a build step before running tests though.

Post Reply