tasty-ant-xml 1.1.8 → 1.1.9
raw patch · 3 files changed
+23/−4 lines, 3 filesdep ~tastyPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: tasty
API changes (from Hackage documentation)
Files
- Changelog.md +6/−0
- Test/Tasty/Runners/AntXML.hs +15/−2
- tasty-ant-xml.cabal +2/−2
Changelog.md view
@@ -1,3 +1,9 @@+# 1.1.9++## Other changes++* Support `tasty-1.5`. Thanks to @sergv (PR #34).+ # 1.1.8 ## Other Changes
Test/Tasty/Runners/AntXML.hs view
@@ -14,6 +14,7 @@ import Control.Applicative import Control.Arrow (first) import Control.Monad.IO.Class (liftIO)+import Data.Foldable (fold) import Data.List (intercalate) import Data.Maybe (fromMaybe) import Data.Monoid (Monoid(..), Endo(..), Sum(..))@@ -136,7 +137,12 @@ Const summary <$ State.modify (+ 1) - runGroup _options groupName children = Tasty.Traversal $ Functor.Compose $ do+ runGroup+ :: Reader.MonadReader [String] f+ => String+ -> Tasty.Traversal (Functor.Compose f (Const Summary))+ -> Tasty.Traversal (Functor.Compose f (Const Summary))+ runGroup groupName children = Tasty.Traversal $ Functor.Compose $ do Const soFar <- Reader.local (groupName :) $ Functor.getCompose $ Tasty.getTraversal children let grouped =@@ -152,11 +158,18 @@ soFar { xmlRenderer = Endo (grouped :) } + runGroup' _options groupName =+#if MIN_VERSION_tasty(1, 5, 0)+ runGroup groupName . fold+#else+ runGroup groupName+#endif+ in do (Const summary, tests) <- flip State.runStateT 0 $ flip Reader.runReaderT [] $ Functor.getCompose $ Tasty.getTraversal $ Tasty.foldTestTree- Tasty.trivialFold { Tasty.foldSingle = runTest, Tasty.foldGroup = runGroup }+ Tasty.trivialFold { Tasty.foldSingle = runTest, Tasty.foldGroup = runGroup' } options testTree
tasty-ant-xml.cabal view
@@ -1,5 +1,5 @@ name: tasty-ant-xml-version: 1.1.8+version: 1.1.9 synopsis: Render tasty output to XML for Jenkins description: A tasty ingredient to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework. homepage: http://github.com/ocharles/tasty-ant-xml@@ -23,7 +23,7 @@ mtl >= 2.1.2, stm >= 2.4.2, tagged >= 0.7,- tasty >= 1.4 && < 1.5,+ tasty >= 1.4 && < 1.6, transformers >= 0.3.0.0, directory >= 1.2.3.0, filepath >= 1.0.0,