--watch cli flag will run under "Watch mode", which uses clj-reload to check for changes in local classpath, and then reruns the provided or default test suite. Includes --delay NUM which allows for changing the number of milliseconds between checking changes.Released 2024-08-28.
Released 2024-08-28.
defdescribe var into describe attr-map. Fixes --include and --exclude filtering on var metadata instead of attr-map.Released 2024-08-19.
-n, --namespace NS cli flag to specify namespaces that will be tested.-v, --var VAR cli flag to specify vars that will be tested.:test metadata on vars. Handles functions, test cases, and test suites, converting them to test suites or using them directly. They're treated in the reporter as test vars, using the defn's var. (See README.md for examples.)Released 2024-08-08.
--exclude and --include cli flags for metadata selection. --include works like ^:focus but is arbitrary metadata.--help output.Released 2024-06-26.
Released 2024-06-18.
:form -> :expected:result -> :actual:fail and :error into :fail. If reporters want to differentiate, they can by checking if :thrown is an ExpectationFailed. (See clojure-test reporter for an example.)(message, reason) constructor arity to ExpectationFailed to better match both AssertionError and ExceptionInfo.expect, rethrow with updated :message, instead of passing msg into each assert-expr like in clojure.test.expect, wrap in ExpectationFailed as :caught data.:messages are tracked.describe, it and expect-it.*color* dynamic var (set to lazytest.colorize system env, default to true) and make colorize? rely on it.focused prints if there's any focused tests.summary prints "Ran x test cases, N failures, Y errors".results prints failed and errored test cases, expected values, etc.dots prints . for passing test case, and F for failure. Namespaces wrap test cases in parentheses: (..F.) Includes focused, results, and summary.nested prints each suite and test case on a new line, and indents each suite. Includes focused, results, and summary.clojure-test attempts to mimic clojure.test's basic output.debug prints "Running X" and "Done with X" for all test sequences and print the direct result of all test cases.Released 2024-06-09.
Updated original code to use deps.edn, tools.build, and other modern tooling.
clojure.test-like api.lazytest.core).This file documents the original Alessandra Sierra development, which ended in 2013. It is kept for posterity.
v2.0.0-SNAPSHOT
Remove contexts and given
Added deftest style
Added sample projects for Leiningen & Maven
Added samples using clojure.test-clojure
v1.2.3 2010-11-27 Added Maven Plugin
Separated into modules
Released lazytest-maven-plugin version 1.0.0
v1.2.2 2010-11-27 Fixed release with diff
v1.2.1 2010-11-27 BAD RELEASE: DO NOT USE
Wrong file extension on the deployed JAR
Tried maven-release-plugin version 2.1
v1.2.0 2010-11-27 BAD RELEASE: DO NOT USE
Wrong file extension on the deployed JAR
Depends on Clojure 1.3.0-alpha3
Prints 'diff' of values when testing with =
v1.1.2 2010-10-03 Minor reloading enhancement
v1.1.1 2010-10-02 Bugfix release
v1.1.0 2010-10-02 Improvements for random generators
Note: due to a configuration error, this version was never deployed.
Add lazytest.random/default-test-case-count and scaled-test-case-count
lazytest.describe/for-any uses the above
lazytest.report.nested collapses large groups of test cases with the same doc strings, such as randomly-generated tests
v1.0.2 2010-10-01 Bugfix release
v1.0.1 2010-09-29 Bugfix release
Fix missing :require of lazytest.random within lazytest.describe
Remove libs from clojure.core/loaded-libs when reloading. This is
manipulating an undocumented core Var, but avoids some unnecessary
loads caused by (require :reload-all ...). It also seems to avoid
some load-order issues with :reload-all, but I can't find
consistent test cases.
v1.0.0 2010-09-24 Initial Release
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |