Skip to content

v1.4.0

Compare
Choose a tag to compare
@NoahTheDuke NoahTheDuke released this 19 Nov 22:04
· 17 commits to main since this release

Added

  • Can now pass in paths as cli arguments, not just through repeated --dir flags: clojure -M:dev:test test/unit test/integration will look for tests in both test/unit and test/integration.
  • Documentation in docs/core.md and in the lazytest.core docstring.
  • Exclude lazytest.core/defdescribe from :clojure-lsp/unused-public-var linter.

Changed

  • Removed Malli dependency as it's no longer used.
  • Support doc tests where the expected value is a function:
(+ 1 1)
=> int?

is rewritten as (expect (int? (+ 1 1))).

  • Give lazytest.core/throws-with-msg? and lazytest.core/causes-with-msg? better errors when the class matches but the regex doesn't.
  • Switch from :test metadata to :lazytest/test metadata. It's longer, but it no longer clashes with clojure.test's internals so you can run lazytest over clojure.test tests without them being marked as passing tests. (See #4.)
  • Clarify :output and :reporter: :output is from the CLI or from a caller of the lazytest.repl functions, and :reporter is the function created/referenced from :output.
  • Move namespace filtering to lazytest.filter/filter-tree and out of lazytest.main.

Fixed

  • cljdoc links in README.md. (See #1.)