tasty-golden 2.2.1.1 → 2.2.1.2
raw patch · 3 files changed
+17/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +10/−0
- Test/Tasty/Golden/Manage.hs +6/−2
- tasty-golden.cabal +1/−1
CHANGELOG.md view
@@ -1,6 +1,16 @@ Changes ======= +Version 2.2.1.2+---------------++Catch exceptions when accepting golden tests++Version 2.2.1.1+---------------++Switch to `temporary-rc`+ Version 2.2.1 -------------
Test/Tasty/Golden/Manage.hs view
@@ -23,6 +23,7 @@ import Data.Proxy import Data.Maybe import Control.Monad.Cont+import Control.Exception import Text.Printf import Options.Applicative @@ -73,5 +74,8 @@ acceptGoldenTests opts tests = do let gs = getGoldenTests opts tests forM_ gs $ \(n,g) -> do- acceptGoldenTest g- printf "Accepted %s\n" n+ mbExn <- try $ acceptGoldenTest g+ case mbExn of+ Right {} -> printf "Accepted %s\n" n+ -- yeah, this is not async-exception-safe/correct+ Left e -> printf "Error when trying to accept %s: %s\n" n (show (e :: SomeException))
tasty-golden.cabal view
@@ -1,5 +1,5 @@ name: tasty-golden-version: 2.2.1.1+version: 2.2.1.2 synopsis: Golden tests support for tasty description: This package provides support for «golden testing».