I’m trying to use jasmine-npm along with some custom reporters, but it looks like the `jasmineDone` callback isn’t being called for them. I’m not sure if it is because the reporter is registered in the wrong place or what, but I could find very little documentation on using jasmine-npm and what I’ve tried so far isn’t working.
1. I’m using the default spec/support/jasmine.json which loads helpers from helpers/**/*.js
2. I’ve created an extremely simple spec file including a single describe with a single it (basicSpec.js)
3. I created helpers/reporters.js which adds a very simple reporter that simply logs out a statement each time the various callbacks are invoked: jasmineStarted, suiteStarted, specStarted, specDone, suiteDone, jasmineDone
All the callbacks are correctly called *except* jasmineDone, which never seems to be called at all. For fun, I have tried modifying the included console_reporter.js and inserting a log statement into its jasmineDone callback, which *is* correctly called.
Is there a more correct way of adding custom reporters? Am I doing something else wrong? Or is this a bug in how jasmine-npm is working?
At the end of the day, I’m trying to get this working because until I figure out what is going wrong and solve it I’m not sure the various reporters included in jasmine-reporters are working correctly when used via jasmine-npm directly. They work fine when used via its own PhantomJS runner, inside protractor using “framework:jasmine2”, jasmine-node, but so far I haven’t been able to make them work with vanilla jasmine-npm. And I really want to :)
Thanks in advance,
Ben