tasty icon indicating copy to clipboard operation
tasty copied to clipboard

localOption (HideSuccesses True) doesn't appear to work

Open dustin opened this issue 5 years ago • 2 comments

I've got a test that has about 4,000 cases I'm trying to fix. It's a generated subsuite and I'd really like to not see it unless something is broken.

-ta --hide-successes works but just prefixing this particular bit with localOption (HideSuccesses True) doesn't.

e.g.:

testPartialTable :: [TestTree]
testPartialTable = undefined

[...]

localOption (HideSuccesses True) $ testGroup "partial table" testPartialTable,

dustin avatar Dec 02 '18 06:12 dustin

Yes, HideSuccesses is a global option at the moment. It's possible to make it local, though that'd be a bit involved. Feel free to give it a try, the relevant code is in core/Test/Tasty/Ingredients/ConsoleReporter.hs.

UnkindPartition avatar Dec 02 '18 08:12 UnkindPartition

Just stumbled upon this, the option still does not work (tasty 1.4.2.1).

quchen avatar Feb 04 '22 10:02 quchen