Closed PhillyWebGuy closed 10 years ago
Unfortunately, phantomjs does not give us details of the syntax error (see https://github.com/gruntjs/grunt-contrib-jasmine/issues/37).
You could use a task just before jasmine that validates your javascript using a task like grunt-jsvalidate
Yeah, I've tried grunt-jsvalidate and jshint and I'm not getting any hints.
I just downgraded to PhantomJS 1.3.0 and Jasmine 1.2.0 and still the same problem.
Have you tried opening the _SpecRunner.html file that remains after a failed run in a browser?
This line is a concern
[D] ["phantomjs","onResourceReceived","file:///Users/xxxxxx/htdocs/eConnect/poc/com.xxxxxx.poc/knockout/tests/phonenumbers/phoneModelTest.html"]
It seems like you might be loading an html file as the src. Grunt-contrib-jasmine is meant to automatically generate your specrunner from source js files. You can use templates to automatically generate one specific to your needs, if necessary.
@PhillyWebGuy ping for update
Same problem here.
@tjwebb can you open another ticket with details regarding your issue? This issue looks like it was related to comment https://github.com/gruntjs/grunt-contrib-jasmine/issues/65#issuecomment-18868103 and without updates from @PhillyWebGuy I don't want to hijack it for another problem.
I have:
node v0.8.9 npm 1.1.61 grunt-cli v0.1.6 grunt v0.4.1 phantomjs 1.9.0 Mac OS 10.8.1
I execute the following from a terminal:
node_modules/grunt-cli/bin/grunt -v -d 1
And I (partially) get:
Testing jasmine specs via phantom
In particular, I am interested in:
And, also the fact that it should be running at least 1 spec, but appears not to be when it reports 0 specs in 0s.
I also ran against the sample SpecRunner.html and I get the same results.