clojure 2026-10-30

Does anyone know a good test helpers library, with stuff like an xfail marker?

what's an xfail marker?

Some thing that you put on a test to say "I know this fails, but I won't fix it now". https://docs.pytest.org/en/6.2.x/skipping.html

I just use #_ to comment a deftest/testing/is from a test.

➕ 1

For namespaces I ignore them with my kaocha cmd line

in #C07NJRDQWDS, you can use :skip metadata on a suite or test case to skip it and all children

With kaocha you can use profiles in tests and then skip tests by namespace etc

kaocha --profile working --skip your.namesapce.important.test

I would use test selector meta data, e.g ^:failing-test on test functions. All test runners can be called to skip one or more test selectors. or run one specific selector. I mostly use this approach for integration testing. https://practical.li/clojure/testing/unit-testing/test-selectors/