lambdaisland / lambdaisland/kaocha

Better support for nested repos or linked repos

Open
#305 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It is not uncommon for folks to have a single repo which contains multiple clojure "modules" or "packages" in subdirectories, each with their own deps.edn and tests.edn. Or to be working on multiple related projects at once by using :local/root in deps.edn.

Kaocha (in particular kaocha.runner and kaocha.repl) don't have a good story here, because they will only look for a tests.edn in the project's current working directory. You can point them to a different config file, but the (relative) paths provided in the tests.edn won't resolve to the intended paths.

Not sure yet how to best approach this, just leaving this here to be picked up and considered in the next development cycle.

I think the main mechanism that's needed is the ability to take multiple [test-config root-dir-path] pairs, and merge them into a single config, where source and tests paths have been adjusted accordingly.

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

Start by reading kaocha.runner and kaocha.repl, then trace how they locate tests.edn and resolve its relative source and test paths. Compare that behavior with the nested deps.edn and :local/root layouts described in the issue. Done should mean multiple test-config/root-dir pairs can be combined while preserving each module's intended paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.