Skip to content

Commit

Permalink
Enable the default reporter at toplevel.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Mar 18, 2019
1 parent 71f6976 commit acb44aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
(:import-from #:rove/core/result
#:form-description)
(:import-from #:rove/reporter
#:use-reporter
#:with-reporter
#:diag
#:*report-stream*)
Expand Down Expand Up @@ -96,3 +97,6 @@
(with-local-envs env
(with-reporter style
(run-system-tests target))))

;; Enable the default reporter
(use-reporter *default-reporter*)
6 changes: 5 additions & 1 deletion reporter.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#:reporter-stream
#:print-message
#:diag
#:with-reporter))
#:with-reporter
#:use-reporter))
(in-package #:rove/reporter)

(defvar *report-stream* (make-synonym-stream '*standard-output*))
Expand Down Expand Up @@ -46,3 +47,6 @@
(append `((*stats* . ,*stats*))
bt:*default-special-bindings*)))
,@body))

(defun use-reporter (style)
(setf *stats* (make-reporter style)))

0 comments on commit acb44aa

Please sign in to comment.