haskell / haskell/cabal

Test detailed with line breaks in message - optionStringMultiline?

Open
#5,256 3 comments 0 reactions 0 assignees View on GitHub
Cabal: cmd/test Cabal: stanza/test-suite/detailed-0.9 type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I'd like to put line breaks in some long error messages of a test using detailed-0.9. There is an option that is named like it could/should be doing this, but setting optionStringMultiline does not have any effect.

Since this there is no documentation and optionStringMultiline shows up in the cabal source only there and does not seem to be used: is it implemented at all? Where would this option be used?

I tried:
a) adding this in options:
TestInstance {
run = return (Finished r)
, name = name
, tags = []
, options = [OptionDescr "ml" "multiline" (OptionString True) Nothing]
, setOption = \_ _ -> Right

b) wrapping the test in ExtraOptions:
ExtraOptions [OptionDescr "ml" "multiline" (OptionString True) Nothing] $
...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.