# Kaocha

**URL:** https://clojureverse.org/c/projects/kaocha/57.md

[Latest](https://clojureverse.org/latest.md) · [Categories](https://clojureverse.org/categories.md) · [Tags](https://clojureverse.org/tags.md)

---

## [About the Kaocha category](https://clojureverse.org/t/about-the-kaocha-category/4352)

<div class="topic-metadata">

**Author:** [@plexus](https://clojureverse.org/u/plexus)\
**Replies:** 0

</div>

Forum for the Kaocha suite of testing tools. Here you can post support requests (how do I do this/how does this work?), and discuss Kaocha and testing in general. Bug reports should generally go to Github issues, but i…

---

## [Understanding why (kaocha.repl/run 'my.ns-test) doesn't run my tests](https://clojureverse.org/t/understanding-why-kaocha-repl-run-my-ns-test-doesnt-run-my-tests/14818)

<div class="topic-metadata">

**Author:** [@teodorlu](https://clojureverse.org/u/teodorlu)\
**Replies:** 2\
**Last updated:** [January 6, 2026, 4:46pm UTC](https://clojureverse.org/t/understanding-why-kaocha-repl-run-my-ns-test-doesnt-run-my-tests/14818 "2026-01-06T16:46:31Z")

</div>

Goal I want to use kaocha.repl to run tests inside a library. The REPL has been started from an application that uses the library with a :local/root dependency. kaocha.repl/run not running what I expect I was surprised…

---

## [Kaocha - Clearer reporting](https://clojureverse.org/t/kaocha-clearer-reporting/5761)

<div class="topic-metadata">

**Author:** [@grierson](https://clojureverse.org/u/grierson)\
**Replies:** 2\
**Last updated:** [August 22, 2025, 8:23pm UTC](https://clojureverse.org/t/kaocha-clearer-reporting/5761 "2025-08-22T20:23:13Z")

</div>

Are there any options/reporters that… Clear output before tests run in --watch mode? 1.1 So that old outputs don’t interfere with the latest output Use aviso/pretty with Kaocha? For pretty stacktraces? 2.1 Clear, sho…

---

## [Is there a way to have tests run within milliseconds of saving a file?](https://clojureverse.org/t/is-there-a-way-to-have-tests-run-within-milliseconds-of-saving-a-file/9817)

<div class="topic-metadata">

**Author:** [@tommy-mor](https://clojureverse.org/u/tommy-mor)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 10:14pm UTC](https://clojureverse.org/t/is-there-a-way-to-have-tests-run-within-milliseconds-of-saving-a-file/9817 "2023-02-27T22:14:48Z")

</div>

there are a bunch of filewatcher libraries, and the emacs repl and test runner could probably share the same process?

---

## [Cancelling tests that take too long](https://clojureverse.org/t/cancelling-tests-that-take-too-long/4360)

<div class="topic-metadata">

**Author:** [@Miikka](https://clojureverse.org/u/Miikka)\
**Replies:** 2\
**Last updated:** [December 26, 2022, 3:43pm UTC](https://clojureverse.org/t/cancelling-tests-that-take-too-long/4360 "2022-12-26T15:43:41Z")

</div>

Does Kaocha have a way for cancelling tests that run too long? Especially with asynchronous code you can have tests that never finish. For example, I just had a test like this: (deftest promise-test (let \[my-promise (…

---

## [Invalid test namespace fails silently?](https://clojureverse.org/t/invalid-test-namespace-fails-silently/5529)

<div class="topic-metadata">

**Author:** [@tomafro](https://clojureverse.org/u/tomafro)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 11:13am UTC](https://clojureverse.org/t/invalid-test-namespace-fails-silently/5529 "2020-03-02T11:13:32Z")

</div>

I accidentally introduced a syntax error (just a typo in the namespace declaration) into a test namespace in our test suite. Running the suite with Kaocha didn’t raise an error or fail the test run - it just silently ign…

---

## [Failures running browser tests](https://clojureverse.org/t/failures-running-browser-tests/5226)

<div class="topic-metadata">

**Author:** [@markdingram](https://clojureverse.org/u/markdingram)\
**Replies:** 17\
**Last updated:** [December 27, 2019, 10:44am UTC](https://clojureverse.org/t/failures-running-browser-tests/5226 "2019-12-27T10:44:08Z")

</div>

I’m struggling to get a reliable setup working for browser cljs tests. I’ve created a test repo here: https://github.com/markdingram/kaocha-browser npm install && clojure -m kaocha.runner :node-cljs works as expected so…

---

## [Why kaocha dynamically add test files into classpath?](https://clojureverse.org/t/why-kaocha-dynamically-add-test-files-into-classpath/4661)

<div class="topic-metadata">

**Author:** [@darkleaf](https://clojureverse.org/u/darkleaf)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 8:00am UTC](https://clojureverse.org/t/why-kaocha-dynamically-add-test-files-into-classpath/4661 "2019-08-06T08:00:43Z")

</div>

Why kaocha dynamically add test files into classpath?

---

## [Kaocha-cljs not seeing test cases](https://clojureverse.org/t/kaocha-cljs-not-seeing-test-cases/4537)

<div class="topic-metadata">

**Author:** [@jkrasnay](https://clojureverse.org/u/jkrasnay)\
**Replies:** 8\
**Last updated:** [July 15, 2019, 10:49pm UTC](https://clojureverse.org/t/kaocha-cljs-not-seeing-test-cases/4537 "2019-07-15T22:49:15Z")

</div>

Hi, I’m having trouble getting kaocha-cljs working. My tests.edn is as follows: ﻿#kaocha/v1 {:tests \[{:id :unit :source-paths \["src/main/clj"\] :test-paths \["src/test/clj"\]} {:id :unit-cljs …

---

## [Skipping tests causes weird exception](https://clojureverse.org/t/skipping-tests-causes-weird-exception/4535)

<div class="topic-metadata">

**Author:** [@jkrasnay](https://clojureverse.org/u/jkrasnay)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 8:35pm UTC](https://clojureverse.org/t/skipping-tests-causes-weird-exception/4535 "2019-07-13T20:35:16Z")

</div>

Hi, I posted this in the Clojurians Slack but I thought I’d try here. Just getting started with Kaocha and having a bit of a problem. When I skip tests, Kaocha fails with the following exception: Exception in thread "m…

---

## [Kaocha-cljs architecture](https://clojureverse.org/t/kaocha-cljs-architecture/4354)

<div class="topic-metadata">

**Author:** [@plexus](https://clojureverse.org/u/plexus)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 8:42am UTC](https://clojureverse.org/t/kaocha-cljs-architecture/4354 "2019-06-07T08:42:51Z")

</div>

I did a short writeup of the Kaocha-cljs architecture, since I’ve noticed this is cause for much confusion. This should help to form a mental model so it’s easier to diagnose issues, or just to figure out what is and …
