Hello community,

here is the log from the commit of package ghc-tasty-ant-xml for 
openSUSE:Factory checked in at 2017-08-31 21:00:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-tasty-ant-xml (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-tasty-ant-xml.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-tasty-ant-xml"

Thu Aug 31 21:00:08 2017 rev:5 rq:513507 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-tasty-ant-xml/ghc-tasty-ant-xml.changes      
2017-04-11 09:43:48.312590949 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty-ant-xml.new/ghc-tasty-ant-xml.changes 
2017-08-31 21:00:09.872216105 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:08:10 UTC 2017 - [email protected]
+
+- Update to version 1.1.0.
+
+-------------------------------------------------------------------

Old:
----
  tasty-ant-xml-1.0.5.tar.gz

New:
----
  tasty-ant-xml-1.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-tasty-ant-xml.spec ++++++
--- /var/tmp/diff_new_pack.vdw6v6/_old  2017-08-31 21:00:11.304014934 +0200
+++ /var/tmp/diff_new_pack.vdw6v6/_new  2017-08-31 21:00:11.312013811 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name tasty-ant-xml
 Name:           ghc-%{pkg_name}
-Version:        1.0.5
+Version:        1.1.0
 Release:        0
 Summary:        Render tasty output to XML for Jenkins
 License:        BSD-3-Clause

++++++ tasty-ant-xml-1.0.5.tar.gz -> tasty-ant-xml-1.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-ant-xml-1.0.5/Changelog.md 
new/tasty-ant-xml-1.1.0/Changelog.md
--- old/tasty-ant-xml-1.0.5/Changelog.md        2017-02-27 16:31:23.000000000 
+0100
+++ new/tasty-ant-xml-1.1.0/Changelog.md        2017-03-17 20:11:56.000000000 
+0100
@@ -1,3 +1,27 @@
+# 1.1.0
+
+## Breaking Changes
+
+* The XML generated is now slightly different in order to satisfy Jenkins. In
+  particular:
+
+  * The `classname` attribute now joins the test path with `.` (like a Java
+    class name).
+  * `testsuite` nodes have a `tests` attribute, which is the amount of tests
+    executed.
+
+  For more discussion see https://github.com/ocharles/tasty-ant-xml/pull/20 and
+  
https://github.com/ocharles/tasty-ant-xml/commit/a01df06b59122c3086fc9f42854129b1d4a8c31c#commitcomment-21211275
+
+  Thanks to @liskin and @haishengwu-okta for this work.
+
+## Other Changes
+
+* Increase the lower bound of `directory` to >= 1.2.3.0. Earlier versions may
+  throw exceptions on some of the actions we are using. Thanks to @liskin for
+  pointing this out.
+
+
 # 1.0.5
 
 ## Other Changes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-ant-xml-1.0.5/Test/Tasty/Runners/AntXML.hs 
new/tasty-ant-xml-1.1.0/Test/Tasty/Runners/AntXML.hs
--- old/tasty-ant-xml-1.0.5/Test/Tasty/Runners/AntXML.hs        2017-02-27 
16:31:23.000000000 +0100
+++ new/tasty-ant-xml-1.1.0/Test/Tasty/Runners/AntXML.hs        2017-03-17 
20:11:56.000000000 +0100
@@ -13,6 +13,7 @@
 import Control.Applicative
 import Control.Arrow (first)
 import Control.Monad.IO.Class (liftIO)
+import Data.List (intercalate)
 import Data.Maybe (fromMaybe)
 import Data.Monoid (Monoid(..), Endo(..), Sum(..))
 import Data.Proxy (Proxy(..))
@@ -95,7 +96,7 @@
             let testCaseAttributes time = map (uncurry XML.Attr . first 
XML.unqual)
                   [ ("name", testName)
                   , ("time", showTime time)
-                  , ("classname", unwords groupNames)
+                  , ("classname", intercalate "." (reverse groupNames))
                   ]
 
                 mkSummary contents =
@@ -130,11 +131,14 @@
           Const summary <$ State.modify (+ 1)
 
         runGroup groupName children = Tasty.Traversal $ Functor.Compose $ do
-          Const soFar <- Reader.withReaderT (++ [groupName]) $ 
Functor.getCompose $ Tasty.getTraversal children
+          Const soFar <- Reader.local (groupName :) $ Functor.getCompose $ 
Tasty.getTraversal children
 
           let grouped = appEndo (xmlRenderer soFar) $
-                XML.node (XML.unqual "testsuite") $
-                  XML.Attr (XML.unqual "name") groupName
+                XML.node (XML.unqual "testsuite")
+                   [ XML.Attr (XML.unqual "name") groupName
+                   , XML.Attr (XML.unqual "tests")
+                       (show . getSum . (summaryFailures `mappend` 
summaryErrors `mappend` summarySuccesses) $ soFar)
+                   ]
 
           pure $ Const
             soFar { xmlRenderer = Endo (`appendChild` grouped)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-ant-xml-1.0.5/tasty-ant-xml.cabal 
new/tasty-ant-xml-1.1.0/tasty-ant-xml.cabal
--- old/tasty-ant-xml-1.0.5/tasty-ant-xml.cabal 2017-02-27 16:31:23.000000000 
+0100
+++ new/tasty-ant-xml-1.1.0/tasty-ant-xml.cabal 2017-03-17 20:11:56.000000000 
+0100
@@ -1,5 +1,5 @@
 name: tasty-ant-xml
-version: 1.0.5
+version: 1.1.0
 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,7 +25,7 @@
     tagged >= 0.7,
     tasty >= 0.10 && < 0.12,
     transformers >= 0.3.0.0,
-    directory >= 1.0.0,
+    directory >= 1.2.3.0,
     filepath >= 1.0.0,
     xml >= 1.3.13
   default-language: Haskell98


Reply via email to