UnkindPartition / tasty

Modern and extensible testing framework for Haskell
638 stars 108 forks source link

Add --min-duration-to-report option #373

Closed brandonchinn178 closed 1 year ago

brandonchinn178 commented 1 year ago

Fixes #341

Not sure how to write a test for this, but the following manual tests work:

# shows some tests with (1.21s or 0.02s duration)
(cd core-tests && stack run -- tasty-core-tests)

# shows all test durations
(cd core-tests && stack run -- tasty-core-tests --min-duration-to-report 0)

# shows no test durations
(cd core-tests && stack run -- tasty-core-tests --min-duration-to-report 1m)
Bodigrim commented 1 year ago

Wrt tests, I imagine one can add a test suite and a shell script, which runs tests and compares stdout against a golden file.

VictorCMiraldo commented 1 year ago

Thanks for adding the issue number to the changelog :)

Bodigrim commented 1 year ago

Thanks @brandonchinn178!