branch: elpa/buttercup
commit b520dcff0605891666203e187eebee0360f15cb9
Author: Ola Nilsson <ola.nils...@gmail.com>
Commit: Ola Nilsson <ola.nils...@gmail.com>

    Print test run duration in an apropriate unit
    
    Use seconds-to-string to format the test run duration using proper SI
    units.
---
 buttercup.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index d8a2955..4c2746b 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1702,19 +1702,19 @@ EVENT and ARG are described in `buttercup-reporter'."
             (concat
              "Ran %s out of %s specs,"
              (buttercup-colorize " %s failed" (if (eq 0 failed) 'green 'red))
-             ", in %.1f seconds.\n")
+             ", in %s.\n")
             (- defined pending)
             defined
             failed
-            duration)
+            (seconds-to-string duration))
          (buttercup--print
           (concat
            "Ran %s specs,"
            (buttercup-colorize " %s failed" (if (eq 0 failed) 'green 'red))
-           ", in %.1f seconds.\n")
+           ", in %s.\n")
           defined
           failed
-          duration))))
+          (seconds-to-string duration)))))
 
     (_
      ;; Fall through to buttercup-reporter-batch implementation.

Reply via email to