Library for checking absence of assertions in clojure.test tests.
naw.core in your test namespace(s).
Note that in
a-test no assertions are made, but
another-test has one assertion. So we expect a warning only about
(:require [clojure.test :refer [deftest testing is]]
(testing (is 1)))
When executing the tests, the following warning will get printed to
WARNING: no assertions made in test a-test
- This library works with Clojure and ClojureScript.
- This library is small and unlicensed. Do what you want with it. You can just copy paste the code from naw.core into your project and don't depend on this via Clojars.
- kaocha has this as a built-in feature
Copyright © 2019 Michiel Borkent
Distributed under unlicense. See UNLICENSE.