Skip to content

Instantly share code, notes, and snippets.

@kurohuku
Created November 1, 2010 00:31
Show Gist options
  • Save kurohuku/657373 to your computer and use it in GitHub Desktop.
Save kurohuku/657373 to your computer and use it in GitHub Desktop.
(defun compile-and-load (path)
(compile-file path)
(load path))
;;; clozure common lisp
(setf ccl:*compile-code-coverage* t)
(compile-and-load "path/to/source")
;;(run-test)
(ccl:report-coverage "file")
;;; SBCL
(require 'sb-cover)
(declaim (optimize sb-cover:store-coverage-data))
(compile-and-load "path/to/source")
;; (run-test)
(sb-cover:report "dir")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment