sbrandwoo / grunt-qunit-junit

JUnit compatible XML reporter for QUnit and grunt 0.4
MIT License
17 stars 5 forks source link

Fatal error: Cannot call method 'match' of null #5

Closed donkeybanana closed 10 years ago

donkeybanana commented 10 years ago
  "devDependencies": {
    "grunt": "~0.4.2",
    "grunt-contrib-qunit": "~0.3.0",
    "grunt-qunit-junit": "0.1.0-alpha2"
  }

I get the error Fatal error: Cannot call method 'match' of null when running my test suite. I have tracked the issue to this line of code.

I am unsure of exactly why message is undefined at this point, as my node debugging skills are not all that great, but the simple addition of message = message || '' allows me to make use of the plugin, while still seemingly reporting correctly on all failed tests.

sbrandwoo commented 10 years ago

Thanks for this, all of my test tests had messages set in the assert statements, and I'd never noticed this bug.

0.1.0 is now released in full (no more alpha) and should not have this issue.

Thanks again for the bug report, I'm happy to hear about any other issues you encounter, and any guidance on how you use the tool and what features it would benefit from.

donkeybanana commented 10 years ago

Thanks for the quick turnaround, it is much appreciated.