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

Monochrome output #71

Open
Unisay opened this issue Jul 31, 2018 · 2 comments
Open

Monochrome output #71

Unisay opened this issue Jul 31, 2018 · 2 comments

Comments

@Unisay
Copy link

Unisay commented Jul 31, 2018

For an unattended test execution on CI/CD pipeline I don't need console colors.
Pulp has a nice global option --monochrome Don't colourise log output. for it.
However, it doesn't seem to be taken into effect by purescript-spec:
screenshot from 2018-07-31 10-49-16

@owickstrom
Copy link
Collaborator

Purescript Spec doesn't have it's own command-line argument parsing, but you can run it with different reporters. One way to accomplish the monochrome test output would be to read some environment variable or parsing flags in your test main action, and running tests with the appropriate reporter.

https://purescript-spec.github.io/purescript-spec/#reporters

The current reporters do not support any monochrome setting, but you could use the TAP reporter in CI (somewhat hacky): https://pursuit.purescript.org/packages/purescript-spec/3.1.0/docs/Test.Spec.Reporter.Tap

@felixSchl
Copy link
Collaborator

Other tools determine whether or not to output color based on whether its' stdout/stdin/stdout fd refer to terminals or pipes, see e.g. https://stackoverflow.com/a/911213/2954634.

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

3 participants