Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.14 KB

Lisp Test Runner

SBCL-Tests Gitter

This library is a test runner for Bazel lisp_test rules. To use it, define a lisp_test rule which has //ace/test in its deps:

load("//lisp/devtools/bazel:rules.bzl", "lisp_library", "lisp_test")

lisp_test(
  name = "foo-test",
  srcs = ["foo-test.lisp"],
  deps = [
    ":foo",
    "//ace/test",
  ],
)

Then use the ace.test package, which defines the deftest macro, and use expect or check to implement test assertions:

(defpackage #:foo-test
  (:use #:common-lisp #:ace.test #:foo))

(in-package #:foo-test)

(deftest test-something ()
  (expect (equal (something) expected-value)))

The Bazel --test_filter flag can be used to run a subset of the tests defined in the target. Pass a test name or a comma-separated list of test names to run.

Disclaimer: This is not an official Google product.