Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporter option : html, json, text, text-summary, badge (pick as many as you want) #116

Open
1000i100 opened this issue Dec 5, 2022 · 1 comment

Comments

@1000i100
Copy link
Contributor

1000i100 commented Dec 5, 2022

Today, codehack-cli produce a cli output and badges. Badges can be disabled by cli option.
Like nyc does, it could produce output depending on selected reporters :

  • html (like html-coverage report)
  • json (all the results content dump in a json file)
  • badges
  • text (like the actual one in stdout, perhaps with an option like codehawk-cli already have to display all files or only the x worst)
  • text-summary (results.summary as text-output)

Today, it's hard for me to add a reporter matching my need without producing a bad smell code. Example in #115.
Reporters architecture could help me working/contributing on UI without understanding or breaking the complexity/maintainability code.

What do you think about it ?

@sgb-io
Copy link
Owner

sgb-io commented Dec 12, 2022

Yep, I am open to this for sure.

A nyc-style reporting option makes sense, since this project is very similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants