lambdaisland / lambdaisland/kaocha

Possible bug in kaocha's output if test fails

Open
#374 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Clojure
Stars
860
Forks
81
PR merge metrics
No merged PRs in 30d

Description

Kaocha Version
1.71.1119

Platform
Operating System: macOS m1 12.5
Clojure version: 1.11.1
JDK vendor and version: OpenJDK Runtime Environment Homebrew (build 19.0.1) with --enable-preview parameter for Virtual Threads

Symptom
If test fails then I get awful kaocha's Exception output

image-exception

Reproduction

  1. Clone my repo SWIM
    git clone https://github.com/redstarssystems/swim/
    cd swim
  2. Select particular commit
    git checkout f9ef925837ff41afdb75f3cc10ba1e4fd4887841
  3. Run tests to make sure that all of them are green
    clj -M:test
  4. Then change value 3 to 4 on line 1993 to make test fail.
  5. Run tests again and see result
    clj -M:test
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report by checking out SWIM commit f9ef925837ff41afdb75f3cc10ba1e4fd4887841, changing the value on line 1993, and running clj -M:test before and after. Compare the failure output and trace it into Kaocha's test-failure reporting; done means the failing test produces a usable exception report rather than the shown output.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.