This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: Oct 10, 2013 6:45 PM by brian morrow  
brian morrow Newbie 4 posts since
Oct 8, 2013
Currently Being Moderated

Oct 8, 2013 7:51 PM

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" --server_url= --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?





Elena Pogorelova Expert 1,860 posts since
Oct 5, 2011
Currently Being Moderated
Oct 9, 2013 4:27 PM in response to: brian morrow
Re: jstestdriver and require js quirk?



there shouldn't be any difference running your tests in the command line and from within WebStorm. What command do you use to run tests in the command line? Can you provide your jstestdriver config?

More Like This

  • Retrieving data ...