packages feed

tasty-ant-xml 1.0.0.9 → 1.0.0.10

raw patch · 2 files changed

+18/−15 lines, 2 filesdep ~tastyPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

Dependency ranges changed: tasty

API changes (from Hackage documentation)

+ Test.Tasty.Runners.AntXML: AntXMLPath :: FilePath -> AntXMLPath
+ Test.Tasty.Runners.AntXML: newtype AntXMLPath

Files

Test/Tasty/Runners/AntXML.hs view
@@ -7,7 +7,7 @@ -- in the same schema that would be produced by Apache Ant's JUnit test runner. -- This schema can be intepreted by the Jenkins continuous integration server, -- amongst other tools.-module Test.Tasty.Runners.AntXML (antXMLRunner) where+module Test.Tasty.Runners.AntXML (antXMLRunner, AntXMLPath(..) ) where  import Control.Applicative import Control.Arrow (first)@@ -131,19 +131,22 @@              options              testTree -        writeFile path $-          XML.showTopElement $-            appEndo (xmlRenderer summary) $-              XML.node-                (XML.unqual "testsuites")-                [ XML.Attr (XML.unqual "errors")-                    (show . getSum . summaryErrors $ summary)-                , XML.Attr (XML.unqual "failures")-                    (show . getSum . summaryFailures $ summary)-                , XML.Attr (XML.unqual "tests") (show tests)-                ]+        return $ \elapsedTime -> do -        return (getSum ((summaryFailures `mappend` summaryErrors) summary) == 0)+          writeFile path $+            XML.showTopElement $+              appEndo (xmlRenderer summary) $+                XML.node+                  (XML.unqual "testsuites")+                  [ XML.Attr (XML.unqual "errors")+                      (show . getSum . summaryErrors $ summary)+                  , XML.Attr (XML.unqual "failures")+                      (show . getSum . summaryFailures $ summary)+                  , XML.Attr (XML.unqual "tests") (show tests)+                  , XML.Attr (XML.unqual "time") (show elapsedTime)+                  ]++          return (getSum ((summaryFailures `mappend` summaryErrors) summary) == 0)    appendChild parent child =     parent { XML.elContent = XML.elContent parent ++ [ XML.Elem child ] }
tasty-ant-xml.cabal view
@@ -1,5 +1,5 @@ name: tasty-ant-xml-version: 1.0.0.9+version: 1.0.0.10 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@@ -24,7 +24,7 @@     reducers >= 3.10.1,     stm >= 2.4.2,     tagged >= 0.7,-    tasty >= 0.8 && < 0.10,+    tasty >= 0.10 && < 0.11,     transformers >= 0.3.0.0,     xml >= 1.3.13   default-language: Haskell98