<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/failing-spec.lisp</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,8 @@
 tests.rb
 bdd-example.lisp
 outtakes.lisp
+agenda.txt
 
 # output files
 *.fasl
-spec.html
+examples/*.html</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 (define-specification &quot;plus&quot; ()
   (&quot;should add two numbers&quot;
-   (=&gt; (+ 1 2) should = 4))
+   (=&gt; (+ 1 2) should = 3))
   (&quot;should add three numbers&quot;
    (=&gt; (+ 1 2 3) should = 6))
   (&quot;should be commutative&quot;</diff>
      <filename>examples/plus-spec.lisp</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,11 @@
 ;;; Formatters
 ;;;
 
+(defvar *html-spec-parameter-pathname*
+  (merge-pathnames &quot;template.html&quot; *load-pathname*)
+  &quot;The :FORMAT 'HTML option to RUN-SPECIFICATION starts with this.&quot;)
+
+
 (define-class specification-formatter)
 (define-class text-specification-formatter (specification-formatter))
 
@@ -15,7 +20,8 @@
   (format t &quot;~%~%&quot;)
   (loop for result in (specification-results-failures results)
      for i upfrom 1
-     do (format output-stream &quot;~D)~%~A~%~A~%~%&quot; i (ref1 result :condition) pathname))
+     do (format output-stream &quot;~D)~%~S FAILED~%~A~%~A~%~%&quot;
+                i (ref1 result :name) (ref1 result :condition) pathname))
   (format output-stream &quot;Finished in ~F seconds~%~%&quot;
           (specification-results-elapsed-time results))
   (format output-stream &quot;~D example~:P, ~D failure~:P&quot;
@@ -24,14 +30,10 @@
 
 (define-class html-specification-formatter (specification-formatter))
 
-(defvar *html-spec-parameter-pathname*
-  (merge-pathnames &quot;template.html&quot; *load-pathname*)
-  &quot;The :FORMAT 'HTML option to RUN-SPECIFICATION starts with this.&quot;)
-
 (define-method (format-specification-results
                 (formatter html-specification-formatter)
                 results
-                &amp;key
+                &amp;key pathname
                 &amp;allow-other-keys)
   ;; for now, the group hierarchy must be exactly one deep
   (labels ((translate-results (results depth)
@@ -49,7 +51,9 @@
                                             elapsed-time)
                                           :basename 'specification-results)))
                   (setf (rref dict 'name)
-                        (specification-name (specification-results-specification (first (specification-results-children results))))
+                        (specification-name
+                         (specification-results-specification
+                          (first (specification-results-children results))))
                         (rref dict 'children)
                         (loop for child in (specification-results-children results)
                            collect (translate-results child (1+ depth))))
@@ -71,5 +75,5 @@
             ;; it's already in dictionary form
             example))
     (copy-template *html-spec-parameter-pathname*
-                   (merge-pathnames &quot;spec.html&quot; *html-spec-parameter-pathname*)
+                   (merge-pathnames (make-pathname :type &quot;html&quot;) pathname)
                    (translate-results results 0))))</diff>
      <filename>formatters.lisp</filename>
    </modified>
    <modified>
      <diff>@@ -157,7 +157,7 @@ show incremental progress during execution.&quot;
          (*run-specifications* nil)
          (*specifications* nil))
      ,@body
-     *specifications*))
+     (nreverse *specifications*)))
 
 ;; FIXME: this shouldn't be in the same gf as the method on SPECIFICATION
 (define-method (run-specification (pathname pathname)</diff>
      <filename>specify.lisp</filename>
    </modified>
    <modified>
      <diff>@@ -108,7 +108,7 @@
   &lt;/head&gt;
   &lt;body&gt;
     &lt;div class=&quot;clspec-report&quot;&gt;
-      &lt;div id=&quot;clspec-header&quot; class=&quot;failed&quot;&gt;
+      &lt;div id=&quot;clspec-header&quot; class=&quot;${~[passed~;~:;failed~] | failures-count}&quot;&gt;
         &lt;h1&gt;CL-spec Results&lt;/h1&gt;
 
         &lt;div id=&quot;summary&quot;&gt;
@@ -121,17 +121,13 @@
 ${children =&gt;
         &lt;div class=&quot;example_group&quot;&gt;
           &lt;dl&gt;
-            &lt;dt class=&quot;failed&quot;&gt;${name}&lt;/dt&gt;
+            &lt;dt class=&quot;${~[passed~;~:;failed~] | failures-count}&quot;&gt;${name}&lt;/dt&gt;
 ${examples =&gt;
-            &lt;dd class=&quot;spec passed&quot;&gt;&lt;span class=&quot;passed_spec_name&quot;&gt;${name}&lt;/span&gt;&lt;/dd&gt;
-$}
-            &lt;dd class=&quot;spec failed&quot;&gt;
-              &lt;span class=&quot;failed_spec_name&quot;&gt;should fail&lt;/span&gt;
-              &lt;div class=&quot;failure&quot; id=&quot;failure_1&quot;&gt;
-                &lt;div class=&quot;message&quot;&gt;&lt;pre&gt;expected: 2,
-                got: 1 (using ==)&lt;/pre&gt;&lt;/div&gt;
-              &lt;/div&gt;
+            &lt;dd class=&quot;spec ${~:[failed~;passed~] | success}&quot;&gt;
+              &lt;span&gt;${name}&lt;/span&gt;
+                &lt;div class=&quot;message&quot;&gt;&lt;pre&gt;${~@[~A~] | condition}&lt;/pre&gt;&lt;/div&gt;
             &lt;/dd&gt;
+$}
           &lt;/dl&gt;
         &lt;/div&gt;
 $}</diff>
      <filename>template.html</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>specs/fail-spec.lisp</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>25a9d6585673e18268f395d16c7328483180a0b2</id>
    </parent>
  </parents>
  <author>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </author>
  <url>http://github.com/osteele/cl-spec/commit/c269ea24852e1bb6bfa3624bdb3bb5e505cbbe80</url>
  <id>c269ea24852e1bb6bfa3624bdb3bb5e505cbbe80</id>
  <committed-date>2008-01-07T20:01:39-08:00</committed-date>
  <authored-date>2008-01-07T20:01:39-08:00</authored-date>
  <message>html output works now</message>
  <tree>1bdd36d575bcb9a20f2e72d6c10881399dae2617</tree>
  <committer>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </committer>
</commit>
