packages feed

tasty-ant-xml 1.0.2 → 1.0.3

raw patch · 3 files changed

+13/−2 lines, 3 filesdep +directorydep +filepathPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: directory, filepath

API changes (from Hackage documentation)

- Test.Tasty.Runners.AntXML: instance Constructor C1_0Summary
- Test.Tasty.Runners.AntXML: instance Datatype D1Summary
- Test.Tasty.Runners.AntXML: instance Generic Summary
- Test.Tasty.Runners.AntXML: instance IsOption (Maybe AntXMLPath)
- Test.Tasty.Runners.AntXML: instance Monoid Summary
- Test.Tasty.Runners.AntXML: instance Selector S1_0_0Summary
- Test.Tasty.Runners.AntXML: instance Selector S1_0_1Summary
- Test.Tasty.Runners.AntXML: instance Selector S1_0_2Summary
- Test.Tasty.Runners.AntXML: instance Selector S1_0_3Summary
- Test.Tasty.Runners.AntXML: instance Typeable AntXMLPath
+ Test.Tasty.Runners.AntXML: instance GHC.Base.Monoid Test.Tasty.Runners.AntXML.Summary
+ Test.Tasty.Runners.AntXML: instance GHC.Generics.Generic Test.Tasty.Runners.AntXML.Summary
+ Test.Tasty.Runners.AntXML: instance Test.Tasty.Options.IsOption (GHC.Base.Maybe Test.Tasty.Runners.AntXML.AntXMLPath)

Files

Changelog.md view
@@ -1,3 +1,7 @@+# 1.0.3++* Now creates the directory containing the report XML file. Thanks to @haishengwu-okta for this feature.+ # 1.0.2  * Build with tasty < 0.12.
Test/Tasty/Runners/AntXML.hs view
@@ -20,6 +20,8 @@ import Data.Typeable (Typeable) import GHC.Generics (Generic) import Generics.Deriving.Monoid (memptydefault, mappenddefault)+import System.Directory (createDirectoryIfMissing, canonicalizePath)+import System.FilePath (takeDirectory)  import qualified Control.Concurrent.STM as STM import qualified Control.Monad.State as State@@ -136,7 +138,7 @@              testTree          return $ \elapsedTime -> do-+          createPathDirIfMissing path           writeFile path $             XML.showTopElement $               appEndo (xmlRenderer summary) $@@ -164,3 +166,6 @@     case Tasty.resultOutcome r of          Tasty.Failure (Tasty.TestTimedOut _) -> True          _ -> False++  createPathDirIfMissing path = fmap takeDirectory (canonicalizePath path)+                                >>= createDirectoryIfMissing True
tasty-ant-xml.cabal view
@@ -1,5 +1,5 @@ name: tasty-ant-xml-version: 1.0.2+version: 1.0.3 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@@ -25,6 +25,8 @@     tagged >= 0.7,     tasty >= 0.10 && < 0.12,     transformers >= 0.3.0.0,+    directory >= 1.2.6.2,+    filepath >= 1.4.1.0,     xml >= 1.3.13   default-language: Haskell98   ghc-options: -Wall -O2