maenu / grunt-template-jasmine-istanbul

Code coverage template mix-in for grunt-contrib-jasmine, using istanbul
MIT License
95 stars 26 forks source link

RequireJS template - poor error reporting #42

Open alex-dow opened 9 years ago

alex-dow commented 9 years ago

It seems that if there is a problem instrumenting files, the only error message reported is:

Warning: PhantomJS timed out, possibly due to an unfinished async spec. Use --force to continue.

to make matters more difficult, the specrunner.html file that gets generated will not display any errors at all unless Raise Exceptions is set to true. And even then, all I get is:

TypeError: this.expectationResultFactory is not a function

Which doesn't help me at all.

Now, all of this is down to configuration problems. However, what was problematic for me is that my Gruntfile is quite large and so sometimes it's not always easy to spot the fact that I missed something. And as the error message that ultimately gets reported to me by Grunt either locally or by the CI server is that it's possibly due to an unfinished async spec, the first thing I (and I'm sure many others) did was to check all my tests. In a large project, this is time consuming.

Example failing project: https://github.com/alex-dow/istanbul-error-reporting-test

gyandeeps commented 9 years ago

Feel free to send a PR with improvements. Sorry for the late response.