thheller / thheller/shadow-cljs

Add more test filters for :node-test target

Open
#322 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Clojure
Stars
2.4k
Forks
192
Avg merge
3h 11m
Merged PRs (30d)
1

Description

The helpers can be similar to the ones in the cljs-test-runner (now in a branch, will be PR-ed soon).

They are definitely useful in shadow because of the all-in-one classpath folder approach:

For instance:

  -n, --namespace SYMBOL                             Symbol indicating a specific namespace to test.
  -r, --namespace-regex REGEX  .*\-test$             Regex for namespaces to test. Only namespaces ending in '-test' are evaluated by default.
  -v, --var SYMBOL                                   Symbol indicating the fully qualified name of a specific test.
  -i, --include SYMBOL                               Run only tests that have this metadata keyword.
  -e, --exclude SYMBOL                               Exclude tests with this metadata keyword.

Contributor guide

Open the contributing guide

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 at the :node-test target and compare its test-selection entry points with the cljs-test-runner helpers referenced in the issue. Implement namespace, namespace-regex, var, include, and exclude filtering, then verify that the target selects only the requested tests and preserves the default '-test' namespace behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.