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

Disable output in Test environment #130

Open
Sufiane-Souissi opened this issue Feb 15, 2019 · 1 comment
Open

Disable output in Test environment #130

Sufiane-Souissi opened this issue Feb 15, 2019 · 1 comment

Comments

@Sufiane-Souissi
Copy link

I found myself kind of annoyed when testing code that use listr.

The output is rendered and show error icon, when testing the code. It looks like the test fails if you don't look closely.

Could it be possible to activate/deactivate renderer with an env variable?

The only solution I see right now is to make a custom renderer that'll check the env variable and execute code accordingly.

It could be great to just have to pass an option like --test to disable the rendering.

what's your opinion about this?

N.B: great job with the library, it's really cool !

@Sufiane-Souissi
Copy link
Author

I saw this: https://github.com/SamVerschueren/listr-silent-renderer
But I would have preferred this to be used under the hood when a given option is given.

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

1 participant