Open 0x1mason opened 7 years ago
Custom reporter, e.g. tap-nyan.
From the readme:
Adheres to AVA options in package.json. You can also specify options in the plugin as seen above.
@sindresorhus Thanks for the quick response. I read the docs and see the options. I do not see an option for reporters. Does that mean there isn't one?
The docs only mention piping to custom reporters via the the cli which is why I'm inquiring here. Is there a gulp specific workaround?
Yeah, you're right. Not that clear. AVA doesn't support third-party reporters directly, but instead comes with a TAP option, enabling you to use any TAP reporter. See the "tap": true,
option. Although, thinking about it more, the Gulp output might conflict with the TAP output, so I'm not 100% sure it will work correctly. I think TAP is supposed to ignore non-TAP output, but needs to be confirmed.
That being said. Would honestly be easier to just spawn the ava
binary directly from Gulp.
Cool, thanks. Yeah, I'll try spawning or hacking the plugin.
Not tested, but with execa
it could probably be as simple as:
gulp.task('test', () => execa.shell('ava --tap | tap-nyan', {stdio: 'inherit'}));
Possible via options?