Skip to content

Commit

Permalink
Add the version key (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda authored Jan 6, 2021
1 parent bdfc7ea commit 7dd7ffd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test-runner/test-runner.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@
results))

(defmethod generate-report ((err error))
(st-json:jso "status" "error"
(st-json:jso "version" 2
"status" "error"
"message" (princ-to-string err)))

(defmethod generate-report ((results list))
(st-json:jso "status" (if (results-status results) "pass" "fail")
(st-json:jso "version" 2
"status" (if (results-status results) "pass" "fail")
"tests" results))

;;; Invoke the test-runner
Expand Down

0 comments on commit 7dd7ffd

Please sign in to comment.