Testing and Extjs 6+ App

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
klodoma
Posts: 44
Joined: Thu Oct 01, 2015 11:55 am

Testing and Extjs 6+ App

Post by klodoma » Fri Apr 05, 2019 9:50 am

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

Code: Select all

<script id="microloader" src="/js/sencha/capp/bootstrap.js"></script>
Any ideas here?

User avatar
nickolay
Core Developer
Core Developer
Posts: 3355
Joined: Mon May 16, 2011 10:48 am

Re: Testing and Extjs 6+ App

Post by nickolay » Fri Apr 05, 2019 9:54 am

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.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

Post Reply