# \#testing

**URL:** https://clojureverse.org/tag/testing/15.md

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

---

## [ANN: ClojureMiniIDE new version 0.2.0](https://clojureverse.org/t/ann-clojureminiide-new-version-0-2-0/14805)

<div class="topic-metadata">

**Author:** [@zspovenetsky](https://clojureverse.org/u/zspovenetsky)\
**Replies:** 0\
**Last updated:** [December 24, 2025, 10:57am UTC](https://clojureverse.org/t/ann-clojureminiide-new-version-0-2-0/14805 "2025-12-24T10:57:01Z")

</div>

Hi all, New version 0.2.0 of ClojureMiniIDE published: https://github.com/rururu/ClojureMiniIDE Improvement features of Clojure editor: Dark and Light themes, font size change, pair parens highlight, parens balance …

---

## [Best Practice for Separating Slow Tests in Kaocha (e.g., Integration Tests)](https://clojureverse.org/t/best-practice-for-separating-slow-tests-in-kaocha-e-g-integration-tests/14731)

<div class="topic-metadata">

**Author:** [@wierob](https://clojureverse.org/u/wierob)\
**Replies:** 4\
**Last updated:** [September 16, 2025, 9:26am UTC](https://clojureverse.org/t/best-practice-for-separating-slow-tests-in-kaocha-e-g-integration-tests/14731 "2025-09-16T09:26:14Z")

</div>

I’m trying to figure out the best way to separate slower tests (such as integration tests) in a Kaocha setup. I’ve added a metadata tag like ^:slow to the appropriate tests and updated my test.edn to skip them by defaul…

---

## [End-to-end tests in Clojure with Etaoin and Testcontainers](https://clojureverse.org/t/end-to-end-tests-in-clojure-with-etaoin-and-testcontainers/11165)

<div class="topic-metadata">

**Author:** [@abogoyavlensky](https://clojureverse.org/u/abogoyavlensky)\
**Replies:** 0\
**Last updated:** [January 25, 2025, 2:10am UTC](https://clojureverse.org/t/end-to-end-tests-in-clojure-with-etaoin-and-testcontainers/11165 "2025-01-25T02:10:24Z")

</div>

---

## [Full-stack ClojureScript unit etc. testing?](https://clojureverse.org/t/full-stack-clojurescript-unit-etc-testing/10415)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 11:33pm UTC](https://clojureverse.org/t/full-stack-clojurescript-unit-etc-testing/10415 "2023-11-14T23:33:06Z")

</div>

We usually write full-stack Clojure apps, and for these our editor (Cider) powered testing is invaluable for TDD. We write tests and then write code to make those tests pass, quickly hopping from code to test and rerunni…

---

## [An ergonomic, REPL focused unit testing framework](https://clojureverse.org/t/an-ergonomic-repl-focused-unit-testing-framework/10402)

<div class="topic-metadata">

**Author:** [@amokfa](https://clojureverse.org/u/amokfa)\
**Replies:** 0\
**Last updated:** [November 5, 2023, 12:30pm UTC](https://clojureverse.org/t/an-ergonomic-repl-focused-unit-testing-framework/10402 "2023-11-05T12:30:20Z")

</div>

Distinguishing features: Designed to be used from REPL Test suites and test results are clojure values that you can manipulate in the REPL Cleans stack traces so that they only contain frames from your module Works w…

---

## [Automated Performance Testing](https://clojureverse.org/t/automated-performance-testing/10087)

<div class="topic-metadata">

**Author:** [@NoahTheDuke](https://clojureverse.org/u/NoahTheDuke)\
**Replies:** 1\
**Last updated:** [June 7, 2023, 3:59pm UTC](https://clojureverse.org/t/automated-performance-testing/10087 "2023-06-07T15:59:28Z")

</div>

I sometimes find myself wondering if I’ve regressed in performance when working on a piece of code. I can use Tufte or Criterium to test from the repl or in a manually run and verified across time script, but it would be…

---

## [Test Pre-conditions](https://clojureverse.org/t/test-pre-conditions/9920)

<div class="topic-metadata">

**Author:** [@dc0d](https://clojureverse.org/u/dc0d)\
**Replies:** 5\
**Last updated:** [May 31, 2023, 11:50am UTC](https://clojureverse.org/t/test-pre-conditions/9920 "2023-05-31T11:50:23Z")

</div>

I have this function: (ns cljslab.core.actions.building-blocks) (defn objs \[x\] {:pre \[(not= 0 x)\]} #js {"data" x}) The goal is to test the precondition - by verifying it returns an error or throws an exception, wh…

---

## [Starting a new ClojureScript project in 2022. Setup suggestions](https://clojureverse.org/t/starting-a-new-clojurescript-project-in-2022-setup-suggestions/9222)

<div class="topic-metadata">

**Author:** [@interstar](https://clojureverse.org/u/interstar)\
**Replies:** 51\
**Last updated:** [August 30, 2022, 11:27pm UTC](https://clojureverse.org/t/starting-a-new-clojurescript-project-in-2022-setup-suggestions/9222 "2022-08-30T23:27:28Z")

</div>

I need to start a new ClojureScript project with the following properties : I want to write a ClojureScript app that runs purely in the browser. No need for a server. And eventually I want to compile it to a single JS…

---

## [Require / import inside deftest](https://clojureverse.org/t/require-import-inside-deftest/8644)

<div class="topic-metadata">

**Author:** [@mapidentity](https://clojureverse.org/u/mapidentity)\
**Replies:** 4\
**Last updated:** [March 21, 2022, 11:43am UTC](https://clojureverse.org/t/require-import-inside-deftest/8644 "2022-03-21T11:43:10Z")

</div>

For unit testing source files I like to keep the tests inside the source file. This generally works great, if I build for production I can set load-tests to false so that nothing gets generated by the clojure.test/deftes…

---

## [java.lang.Long cannot be cast to clojure.lang.PersistentCollection](https://clojureverse.org/t/java-lang-long-cannot-be-cast-to-clojure-lang-persistentcollection/8570)

<div class="topic-metadata">

**Author:** [@yap0001](https://clojureverse.org/u/yap0001)\
**Replies:** 10\
**Last updated:** [January 28, 2022, 11:28pm UTC](https://clojureverse.org/t/java-lang-long-cannot-be-cast-to-clojure-lang-persistentcollection/8570 "2022-01-28T23:28:15Z")

</div>

Hey folks, Clojure beginner trying to debug a function I wrote for a homework assignment (see below). We’re supposed to do this recursively and I’m trying to nail it down but running into the error that I made the title…

---

## [Is there a way to measure the amount of memory a program uses?](https://clojureverse.org/t/is-there-a-way-to-measure-the-amount-of-memory-a-program-uses/8113)

<div class="topic-metadata">

**Author:** [@abhik](https://clojureverse.org/u/abhik)\
**Replies:** 2\
**Last updated:** [September 4, 2021, 11:10am UTC](https://clojureverse.org/t/is-there-a-way-to-measure-the-amount-of-memory-a-program-uses/8113 "2021-09-04T11:10:10Z")

</div>

Hi all, I am wondering is there a way we can measure the memory consumption of a program in Clojure. Let’s say this is an algorithm for finding the Levenshtein Distance (defn cost \[a b\] (if (= a b) 0 1)) (defn leve…

---

## [Unified Front and Backend Development Environments](https://clojureverse.org/t/unified-front-and-backend-development-environments/7975)

<div class="topic-metadata">

**Author:** [@Kendall\_Buchanan](https://clojureverse.org/u/Kendall_Buchanan)\
**Replies:** 6\
**Last updated:** [August 6, 2021, 11:44pm UTC](https://clojureverse.org/t/unified-front-and-backend-development-environments/7975 "2021-08-06T23:44:51Z")

</div>

Can anyone recommend how to architect a frontend SPA (non-ClojureScript) to unify with their Clojure backend? My team manages a Clojure monolith of ~40K lines; it’s in good shape, it has powerful tooling—all the things …

---

## [Running devcard tests in CI](https://clojureverse.org/t/running-devcard-tests-in-ci/7212)

<div class="topic-metadata">

**Author:** [@kiramclean](https://clojureverse.org/u/kiramclean)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 9:16pm UTC](https://clojureverse.org/t/running-devcard-tests-in-ci/7212 "2021-02-18T21:16:36Z")

</div>

Hello Clojureverse! I’m wondering if anyone else here writes interactive UI-based tests using devcards as a harness. I write tests that load a component as a devcard and then using the react testing library and user even…

---

## [How to replace DI in Clojure?](https://clojureverse.org/t/how-to-replace-di-in-clojure/6693)

<div class="topic-metadata">

**Author:** [@ACiep](https://clojureverse.org/u/ACiep)\
**Replies:** 39\
**Last updated:** [December 18, 2020, 7:13pm UTC](https://clojureverse.org/t/how-to-replace-di-in-clojure/6693 "2020-12-18T19:13:12Z")

</div>

Hello, How do you deal with function which are dependent upon impure functions? Common example: functions which contain business logic but rely on data from database. Our business logic can be pure but database access c…

---

## [Testing thrown ex-info exceptions](https://clojureverse.org/t/testing-thrown-ex-info-exceptions/6146)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 5\
**Last updated:** [November 18, 2020, 3:02am UTC](https://clojureverse.org/t/testing-thrown-ex-info-exceptions/6146 "2020-11-18T03:02:07Z")

</div>

In my code we often throw our own exceptions with (throw (ex-info "Custom exception" {:cause "reasons" :data {}})) When this hits our tests though,is there a way to meaningfully reason about its :data or :causes or som…

---

## [Introduction to testing with expectations/clojure-test and humane-test-output](https://clojureverse.org/t/introduction-to-testing-with-expectations-clojure-test-and-humane-test-output/6705)

<div class="topic-metadata">

**Author:** [@Futurile](https://clojureverse.org/u/Futurile)\
**Replies:** 1\
**Last updated:** [October 18, 2020, 11:23pm UTC](https://clojureverse.org/t/introduction-to-testing-with-expectations-clojure-test-and-humane-test-output/6705 "2020-10-18T23:23:10Z")

</div>

There are lots of ways to improve on the default the testing experience in Clojure. I put together a tutorial post on a complete testing experience I’m using. The most important libraries are expectations/clojure-test a…

---

## [Online Talk: Microbenchmarks with jmh-clojure](https://clojureverse.org/t/online-talk-microbenchmarks-with-jmh-clojure/6277)

<div class="topic-metadata">

**Author:** [@BrunoBonacci](https://clojureverse.org/u/BrunoBonacci)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 11:25am UTC](https://clojureverse.org/t/online-talk-microbenchmarks-with-jmh-clojure/6277 "2020-07-29T11:25:15Z")

</div>

Event link: https://www.meetup.com/London-Clojurians/events/271860420/ Time: 2020-07-28T17:30:00Z (UTC) Justin Conklin will be presenting his library jmh-clojure: https://github.com/jgpc42/jmh-clojure Justin has been…

---

## [When is it appropriate to do RDD instead of TDD?](https://clojureverse.org/t/when-is-it-appropriate-to-do-rdd-instead-of-tdd/5602)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 24\
**Last updated:** [June 29, 2020, 1:41pm UTC](https://clojureverse.org/t/when-is-it-appropriate-to-do-rdd-instead-of-tdd/5602 "2020-06-29T13:41:26Z")

</div>

Repl-Driven Development is touted as a super-power of Clojure and is often referred to by famous Clojurians like Stuart Halloway and, to some degree, Rich Hickie. It’s usually brought up as an alternative to the verbosit…

---

## [Do we have a library to perform the mutation testing?](https://clojureverse.org/t/do-we-have-a-library-to-perform-the-mutation-testing/5744)

<div class="topic-metadata">

**Author:** [@alekseysotnikov](https://clojureverse.org/u/alekseysotnikov)\
**Replies:** 2\
**Last updated:** [April 8, 2020, 1:03am UTC](https://clojureverse.org/t/do-we-have-a-library-to-perform-the-mutation-testing/5744 "2020-04-08T01:03:17Z")

</div>

Please recommend some library or test runner to perform mutation testing if one exists. Mutation testing involves modifying a program in small ways.\[1\] Each mutated version is called a mutant and tests detect and rej…

---

## [Using clojure.spec in ClojureScript SPA](https://clojureverse.org/t/using-clojure-spec-in-clojurescript-spa/5675)

<div class="topic-metadata">

**Author:** [@pyrmont](https://clojureverse.org/u/pyrmont)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 6:16am UTC](https://clojureverse.org/t/using-clojure-spec-in-clojurescript-spa/5675 "2020-03-30T06:16:25Z")

</div>

I’m working on Pondent (repository), a posting utility written in ClojureScript and made available via GitHub Pages (app). After authorising with GitHub, a user can commit files to a repository they administer. The app i…

---

## [A Gotcha: \`test.core/thrown?\`](https://clojureverse.org/t/a-gotcha-test-core-thrown/5595)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 12\
**Last updated:** [March 25, 2020, 2:17pm UTC](https://clojureverse.org/t/a-gotcha-test-core-thrown/5595 "2020-03-25T14:17:27Z")

</div>

Clojure is generally such a pristine and sensible language, it took me some debugging time to find out why this was failing: (is (let \[proctorless-rmap {:tester (:id tester) :test (:id this-test)}\] (thro…

---

## [Testing in node/clojurescript](https://clojureverse.org/t/testing-in-node-clojurescript/5537)

<div class="topic-metadata">

**Author:** [@knubie](https://clojureverse.org/u/knubie)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 9:55am UTC](https://clojureverse.org/t/testing-in-node-clojurescript/5537 "2020-03-02T09:55:04Z")

</div>

I’m struggling to find a good workflow for writing node tests in clojurescript. There are a couple of problems I’m running into that I can’ find good solutions for: Unable to run a single test at a time. I’m writing …

---

## [Unit test coverage reports?](https://clojureverse.org/t/unit-test-coverage-reports/4696)

<div class="topic-metadata">

**Author:** [@Quade](https://clojureverse.org/u/Quade)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 4:59am UTC](https://clojureverse.org/t/unit-test-coverage-reports/4696 "2020-01-24T04:59:37Z")

</div>

Hi everyone! :slightly\_smiling\_face: What do you guys use to generate reports for the coverage of your unit tests? I’m currently playing around with Cloverage, but I’m struggling to get it to output a single report with…

---

## [Applying Spec-based generative testing to a transformation pipeline - tips and lessons learned](https://clojureverse.org/t/applying-spec-based-generative-testing-to-a-transformation-pipeline-tips-and-lessons-learned/4926)

<div class="topic-metadata">

**Author:** [@HolyJak](https://clojureverse.org/u/HolyJak)\
**Replies:** 2\
**Last updated:** [October 5, 2019, 8:10am UTC](https://clojureverse.org/t/applying-spec-based-generative-testing-to-a-transformation-pipeline-tips-and-lessons-learned/4926 "2019-10-05T08:10:21Z")

</div>

I have written about our lessons-learned from Spec-based generative testing and would very much appreciate feedback (and perhaps other tips for such testing): Having the computer generate tests for you, trying tens of d…

---

## [How to read code coverage report (Cloverage)?](https://clojureverse.org/t/how-to-read-code-coverage-report-cloverage/4826)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 0\
**Last updated:** [September 11, 2019, 11:24pm UTC](https://clojureverse.org/t/how-to-read-code-coverage-report-cloverage/4826 "2019-09-11T23:24:53Z")

</div>

I’m new to code coverage tools and am trying Cloverage. It produces a nice HTML out put as follows: This link to details on the individual namespace: The trouble is, I’m not sure how to read this. What does the pe…

---

## [Test simulating a stdin](https://clojureverse.org/t/test-simulating-a-stdin/4766)

<div class="topic-metadata">

**Author:** [@juniorgarcia](https://clojureverse.org/u/juniorgarcia)\
**Replies:** 1\
**Last updated:** [August 27, 2019, 1:54pm UTC](https://clojureverse.org/t/test-simulating-a-stdin/4766 "2019-08-27T13:54:22Z")

</div>

My -main function reads arguments from \*in\*, like this: (defn -main \[& args\] (doseq \[ln (line-seq (java.io.BufferedReader. \*in\*))\] ; Do something... )) I use my app basically like: $ lein run \< input.txt. I woul…

---

## [Very weird - println is affecting test results](https://clojureverse.org/t/very-weird-println-is-affecting-test-results/4376)

<div class="topic-metadata">

**Author:** [@teogenesmoura](https://clojureverse.org/u/teogenesmoura)\
**Replies:** 6\
**Last updated:** [June 17, 2019, 11:35pm UTC](https://clojureverse.org/t/very-weird-println-is-affecting-test-results/4376 "2019-06-17T23:35:33Z")

</div>

Hey guys, how are you? I’m working on a project and I’m getting the weirdest error I’ve ever seen in my life. I’m quite new to clojure, so I really don’t know what I’m doing wrong. Following is the code I’m using to tes…

---

## [Testing with Transcriptor](https://clojureverse.org/t/testing-with-transcriptor/4261)

<div class="topic-metadata">

**Author:** [@Astronought](https://clojureverse.org/u/Astronought)\
**Replies:** 2\
**Last updated:** [May 14, 2019, 10:18pm UTC](https://clojureverse.org/t/testing-with-transcriptor/4261 "2019-05-14T22:18:45Z")

</div>

Hi all, I’ve been playing around with Stuart Halloway’s transcriptor library for writing example-based tests, primarily because its simplicity was really appealing and its use of spec, but I’m hitting some blockers part…

---

## [Inline tests, do you do it?](https://clojureverse.org/t/inline-tests-do-you-do-it/4083)

<div class="topic-metadata">

**Author:** [@PEZ](https://clojureverse.org/u/PEZ)\
**Replies:** 12\
**Last updated:** [April 1, 2019, 4:04pm UTC](https://clojureverse.org/t/inline-tests-do-you-do-it/4083 "2019-04-01T16:04:24Z")

</div>

When my project allows it, I like to use the attrs-map of functions to inline my tests. Seeing that not even @danielcompton seems to be aware of this feature, I thought I might tip about it here. The thing is that the C…

---

## [How to minimize redundancy between unit testing and spec?](https://clojureverse.org/t/how-to-minimize-redundancy-between-unit-testing-and-spec/3152)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 9:36pm UTC](https://clojureverse.org/t/how-to-minimize-redundancy-between-unit-testing-and-spec/3152 "2018-11-09T21:36:52Z")

</div>

I can write a unit test for a function. I can also write an fdef for pre/post-conditions. There seems to be a lot of overlap in what I end up with; should I avoid one or the other? I guess it’s spec that seems like the f…

[Next page](https://clojureverse.org/tag/testing/15.md?match_all_tags=true&page=1&tags%5B%5D=testing)
