Support console output - Switch to Kaocha?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with Kaocha's capture_output plugin documentation and its Babashka compatibility notes, then compare those capabilities with the current test-runner setup. A completed change would support console output and preserve non-random test ordering while retaining Babashka compatibility; validate it with the existing test run.
Written by the indexing model from the issue text.
Description
I was looking into what it would take to support printing console output, since this is a common thing people try to do and currently makes the whole test run error without any meaningful message.
While searching for how to capture stdout during a test run, I stumbled upon this: https://github.com/lambdaisland/kaocha/blob/main/doc/plugins/capture_output.md
In other words, it supports that out of the box. And from the looks of it, I think I would rather just use Kaocha than figure out how to do that with our current setup.
I had previously looked into Kaocha when I was choosing a testing framework, and it has another compelling advantage: It has an option to not randomize the testing order, which is exactly what we need!
So why didn't I decide to use it? Because it ran on the JVM, so it was worth avoiding it to gain the quick startup time of Babashka.
This had the unfortunate side effect of me having to actually parse the test files in order to determine the order they are defined, simply to defeat the behavior of clojure.test randomizing the test runs. It's kind of ridiculous, actually, but I couldn't figure out any other way to do it.
But now, Kaocha is compatible with Babashka, so it ticks all of the boxes.
- Dominant language
- Clojure
- Stars
- 2
- Forks
- 10
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/clojure-test-runner
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
exercism/clojure-test-runner#62 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
exercism/clojure-test-runner#57 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
exercism/clojure-test-runner#38 · 5 comments ·
All issues in exercism/clojure-test-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
clojure-emacs/cider#4203 ·
-
.Team/QueryingPlatform Priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
clj-commons/antq#329 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100