简体   繁体   中英

Warning Message when running Siesta tests

I have Sencha ExtJs 5.1.0.107 with Sencha CMD v 5.1.1.48 and Siesta 2.0.9, according to my Ivy dependencies:

    <dependency org="sencha" name="cmd" rev="5.1.1.48"/>
    <dependency org="sencha" name="ext" rev="5.1.0.107"/>
    <dependency org="bryntum" name="siesta" rev="2.0.9"/>

When running my tests from the command line, I am returned with the following (there are only two sample tests at the moment):

siesta.test:
     [echo] Siesta Path=test.html
     [echo] http://localhost/myhost/test.html
     [exec] Launching PhantomJS 1.9.7 at http://localhost/myhost/test.html
     [exec] [E] [Ext.Loader] Some requested files failed to load.
     [exec] [PASS]  test/sanity.t.js
     [exec] [E] [Ext.Loader] Some requested files failed to load.
     [exec] [PASS]  test/helloWorld.t.js
     [exec] 4 passed, 0 failed assertions took 23.73s to complete

Furthermore, here is my test.html:

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/4.2.0/resources/css/ext-all.css">
        <link rel="stylesheet" type="text/css" href="../../siesta/resources/css/siesta-all.css">

        <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.0/ext-all.js"></script>
        <script type="text/javascript" src="../../siesta/siesta-all.js"></script>
        <script type="text/javascript" src="../../siesta/siesta-coverage-all.js"></script>
        <script type="text/javascript" src="test.js"></script>
    </head>
    <body>
    </body>
</html>

My tests pass, but I am not sure why I am getting that warning message and how I can resolve it. Also, not sure if this will eventually affect any future tests. Any idea?

Thanks for your help,

I.

---EDIT UPDATED INFO---

I have checked my Javascript's Console and it seems to be an issue with ext-all-debug.js :

[E] [Ext.Loader] Some requested files failed to load.

log @ ext-all-debug.js:5663
logx @ ext-all-debug.js:5698
Ext.apply.log.log.error @ ext-all-debug.js:5701
Ext.apply.onLoadFailure @ ext-all-debug.js:10995
(anonymous function) @ ext-all-debug.js:856

ext-all-debug.js is part of my preload in the harness file and points to the .js in myapp/ext/build . Any idea how this issue can be resolved?

Thanks,

I.

More than likely your TESTS have some dependencies which are being loaded synchronously.

Open the Siesta test runner in your browser and keep an eye on your browser's JavaScript console -- it will tell you what files are being loaded synchronously with the same warning message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM