jasmine-node icon indicating copy to clipboard operation
jasmine-node copied to clipboard

How do I add a custom report?

Open Foxeye-Rinx opened this issue 7 years ago • 0 comments

In protractor, user can add the custom report in protractor config file, using option "onPrepare" of config object, as following:

exports.config = {
    onPrepare: function () {
        jasmine.getEnv().addReporter(myReporter);
    }
}

Assume I wrote "myReporter" using the example of jasmine custom report Is there any option like "onPrepare" in jasmine-node allow user setup their custom report? If there is no, it would be nice to have a feature allow user setup things in a javascript config file like the way protractor is using.

Foxeye-Rinx avatar Sep 24 '16 20:09 Foxeye-Rinx