-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal test --test-show-details=streaming
should support colour output
#1963
Comments
I investigated this when I originally implemented test log streaming. Here is what I discovered:
Of course, this is all dictated by the logging requirement. If we abandon logging test suite results for |
There is an easier workaround via the To make it work, there needs to be a way to invoke the test executable via a wrapper of some kind. This would have applications beyond colored output and should be relatively easy to implement. Therefore, the easiest way to get colored output is if Cabal supported a way to indirectly invoke the test executable via a flag or .cabal setting (or both?), e.g.
which would call the test executable like this:
You can then put this in #!/bin/sh
p="s/'/'\\\\''/g"
cmd=
for arg; do
cmd="$cmd '"`printf "%s" "$arg" | sed "$p"; printf "'"`
done
exec script -e -q -c "$cmd" /dev/null 2>/dev/null |
Not yet, but your contribution would be welcome! For this particular case, I think it would be best if this worked out-of-the-box. If we added |
Does this issue affect |
Yes it does! I have dug into the |
Colored test output works with See also: #6129 |
cabal test --test-show-details=streaming
should support colour output
Why command line flag is so long? I would expect something like |
Given that we have |
@gbaz: no, the ticket seems to be outdated. Let's close. @yaitskov: you can set |
As discussed in #1601 (comment)
Paging @ttuegel, @dag.
The text was updated successfully, but these errors were encountered: