Skip to content

qitab/ace.test

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •