0

jstestdriver and require js quirk?

Hi Folks

I have inherited a bunch of Jasmine tests that run fine under jstd (apart from the 17 broken tests).

However, when I run the same config file from WebStorm using the JSTD plugin I get messages like:

"C:\Program Files (x86)\JetBrains\WebStorm 7.0\jre\jre\bin\java" -cp "C:\Program Files (x86)\JetBrains\WebStorm 7.0\plugins\JsTestDriver\lib\JsTestDriver-plugin-rt.jar;C:\Program Files (x86)\JetBrains\WebStorm 7.0\plugins\JsTestDriver\lib\JsTestDriver-1.3.5-patched.jar;C:\Program Files (x86)\JetBrains\WebStorm 7.0\lib\guava-14.0.1.jar;C:\Program Files (x86)\JetBrains\WebStorm 7.0\lib\gson-2.2.3.jar" com.google.jstestdriver.idea.TestRunner --server_url=http://127.0.0.1:9876 --config_files=C:/Users/BMorrow/sky/commerce/Dynamo/Client/jstestdriver.jstd
Testing started at 16:35 ...

error loading file: /test/Store/web/store.war/shared/js/libs/jquery.placeholderpatch.js:8: Uncaught ReferenceError: define is not defined

error loading file: /test/Store/web/store.war/shared/js/libs/require.js:1806: Uncaught Error: Mismatched anonymous define() module: function (require, exports, module) {

I can see that define( is not defined may be because of the order of stuff in my JSTD config file.

Am also aware that there are challenges with require js in JSTD but am surprised that the same config should give different results?

Any bright ideas? Am I missing something?

cheers

Brian.

2 comments

Please sign in to leave a comment.