Closed voidus closed 4 months ago
This is something I would love to see as well.
From what I understand, the code that extracts the definitions is here: https://github.com/hedgehogqa/haskell-hedgehog/blob/master/hedgehog/src/Hedgehog/Internal/Discovery.hs#L44
If we don't want to reimplement all of the result formatting then I guess we would need to make this configurable in hedgehog
somehow.
Currently, hedgehog always shows the whole toplevel definition on failure (as far as I can tell)
in a long definition with a bunch of
describe
s, this is a lot of stuff we probably don't care about.I think it would be better to only show the innermost
it
-call. Not sure if this requires a change with hedgehog though.