junit-xml 0.1.0.2 → 0.1.0.3
raw patch · 4 files changed
+21/−14 lines, 4 filesdep +filepathdep +temporarydep ~tastydep ~tasty-goldenPVP ok
version bump matches the API change (PVP)
Dependencies added: filepath, temporary
Dependency ranges changed: tasty, tasty-golden
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−1
- LICENSE +1/−1
- junit-xml.cabal +7/−7
- test/Main.hs +8/−5
CHANGELOG.md view
@@ -1,6 +1,10 @@+# 0.1.0.3++- Expand version bounds to include tasty 1.5.+ # 0.1.0.2 -- Expand version bounds to include tasy 1.4.+- Expand version bounds to include tasty 1.4. # 0.1.0.1
LICENSE view
@@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2020, Jasper Woudenberg+Copyright (c) 2023, Jasper Woudenberg All rights reserved. Redistribution and use in source and binary forms, with or without
junit-xml.cabal view
@@ -1,13 +1,11 @@ cabal-version: 1.18 --- This file has been generated from package.yaml by hpack version 0.33.0.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack------ hash: 72708238608fb2cef765e9a4e99c281514463f5ce7d370f27c767776c934e6a9 name: junit-xml-version: 0.1.0.2+version: 0.1.0.3 synopsis: Producing JUnit-style XML test reports. description: Please see the README at <https://github.com/jwoudenberg/junit-xml>. category: Web@@ -15,7 +13,7 @@ bug-reports: https://github.com/jwoudenberg/junit-xml/issues author: Jasper Woudenberg maintainer: mail@jasperwoudenberg.com-copyright: 2020 Jasper Woudenberg+copyright: 2023 Jasper Woudenberg license: BSD3 license-file: LICENSE build-type: Simple@@ -51,7 +49,9 @@ test build-depends: base+ , filepath , junit-xml- , tasty >=1.1 && <1.5- , tasty-golden >=2.3 && <2.4+ , tasty+ , tasty-golden+ , temporary default-language: Haskell2010
test/Main.hs view
@@ -9,18 +9,21 @@ import Test.Tasty import Test.Tasty.Golden as Golden import Text.XML.JUnit+import System.FilePath((</>))+import System.IO.Temp(withSystemTempDirectory) -main = defaultMain tests+main :: IO ()+main = withSystemTempDirectory "haskell-junit-xml-tests" (\tmp -> defaultMain (tests tmp)) -tests :: TestTree-tests =+tests :: FilePath -> TestTree+tests tmpdir = Golden.goldenVsFile "Generate sample XML"- "test/sample-report.xml"+ ("test" </> "sample-report.xml") out (writeXmlReport out suites) where- out = "/tmp/junit-xml-haskell-test.xml"+ out = tmpdir </> "junit-xml-haskell-test.xml" suites = [ passed "Passed test" & stdout "passing stdout"