Skip to content

qitab/ace.test

Folders and files

NameName
Last commit message
Last commit date
Jan 15, 2021
May 21, 2020
May 21, 2020
Jul 30, 2021
Dec 30, 2024
Jan 2, 2025
Dec 30, 2024
Oct 27, 2023
Oct 27, 2023
Sep 29, 2021
Dec 30, 2024
May 21, 2020
Nov 22, 2024

Repository files navigation

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.