Note that there are some explanatory texts on larger screens.

plurals
  1. POBusterJS freezes when a lib is included
    text
    copied!<p>I have the following setup:</p> <p>buster.js:</p> <pre><code>var config = module.exports; config["web-module"] = { autoRun: true, environment: "browser", rootPath: ".", libs: [ //"app/webroot/src/lib/underscore.js" ], sources: [ ], tests: [ "buster_simpletest.js" ] }; </code></pre> <p>buster_simpletest.js:</p> <pre><code>buster.testCase("My thing", { "states the obvious": function () { console.log("TEST"); assert(true); } }); </code></pre> <p>This setup runs fine and I get the expected console output: </p> <pre><code>Chrome 24.0.1312.57, Windows Server 2008 R2 / 7: Passed: Chrome 24.0.1312.57, Windows Server 2008 R2 / 7 My thing states the obvious [LOG] TEST 1 test case, 1 test, 1 assertion, 0 failures, 0 errors, 0 timeouts. Finished in 0.004s </code></pre> <p>However, it doesn't as soon as I include any of the libs (I tried underscore.js, jQuery and several others.)</p> <p>I don't get a single line of console output. No error, no nothing. It simply freezes there.</p> <p>I also tried to disable <code>autoRun</code> and include a <code>run.js</code> which calls <code>buster.run();</code>, but the result was the same.</p> <p>Does anyone know what's wrong here?</p> <p>Thanks in advance for your help.</p> <p><strong>Edit:</strong></p> <p>Ok I tested some more and it seems to have problems with the folder depth. Here is my folder structure:</p> <pre><code>root - buster.js - buster_simpletest.js - underscore.js - a - underscore.js - b - underscore.js </code></pre> <p>And here's my testing result:</p> <pre><code>libs: [ //"underscore.js" // works //"a/underscore.js" // works //"a/b/underscore.js" // freezes //"a/b/xunderscore.js" // Error: "Failed loading configuration: "a/b/xunderscore.js" matched no files or resources" ] </code></pre> <p>As you can see it freezes as soon as I have depth of 2 folders. Although it is able to find the file, as I get an error if I try to include an invalid file.</p> <p><strong>Edit 2:</strong></p> <p>Seems to be a bug with windows only. The same setup works fine on our linux machine. I guess we have to wait for proper windows support.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload