This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
Feature request: Quieter CLI reporter #952
Labels
Epic: CLI reporter
Dredd's default reporter
Milestone
I'm not sure whether this will be its own feature or part of #765 so I'm just logging it here for now.
In #765 there are separate sections for Progress and List of Failures.
What I'd like is to have the option to hide the List of Failures section from the CLI reporter. The reason is that my expected/actual json is quite long, and when dumped into my terminal it destroys all meaningful information there.
What I'd prefer is to be able to use both the html and cli reporters, have the failures dumped into the html reporter (as it is now) but make the cli reporter only show the Progress and not the List of Failures.
I had a few thoughts. One is to create a new reporter with the failure data omitted. I created one locally and can submit a PR if you wish.
Another is to modify the parameters in the cli-reporter.js - such as changing the variable inlineErrors to displayErrors which would be either none, inLine or atEnd. But since this would be a breaking change it might be better to incorporate it as part of #765.
Another is to have a means whereby a dev can create their own custom reporters. This might involve configuring a directory for the system to scan and dynamically load all reporter js files in it. I am yet to do this but could develop and submit a PR for this if you wish. However since you are considering switching to TAP this may be redundant.
The text was updated successfully, but these errors were encountered: