lambdaisland / lambdaisland/kaocha-cljs2

Tests not found

Open
#6 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

closed: wontfix
Dominant language
Clojure
Stars
34
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am using a different file organization than the default one. Tests files are located in ./src/test without special filenames. Just like for regular Kaocha, in Kaocha-CLJS I was using this sort of configuration:

{:id                                 :node
  :type                            :kaocha.type/cljs
  :kaocha/ns-patterns    [".+"]
  :kaocha/source-paths ["src/main"]
  :kaocha/test-paths      ["src/test"])

However, with Kaocha-CLJS2, I get:

WARNING: No tests were found, make sure :test-paths and :ns-patterns are configured correctly in tests.edn.

I have no idea if I am doing something wrong or if, for some reason, those options are not supported. I have a bit of a trouble migrating from version 1 for node + Chui for browser to version 2 for everything.

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 reproducing the report with the tests.edn configuration using :test-paths ["src/test"] and :ns-patterns [".+"]. Check how Kaocha-CLJS2 discovers tests for the :node configuration and determine why these paths or patterns are ignored. Done means tests in ./src/test are discovered and run without the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.