practicalli / practicalli/clojure

clojure.test - defn- testing

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
117
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Cannot test defn- functions when calling them from a different namespace (i.e. the test namespace). So if going to go with sut/ alias in namespace, then need to mark defn- tests later in the process, once you have wrapped all your potential defn- tests with tests at the namespace level (as those tests will call functions that are public)
Example image in spacemacs image directory

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 with the clojure.test context and the issue's examples of defn-, the sut/ alias, and the Spacemacs image directory. Clarify how private functions should be tested from another namespace and when those tests should be added; done means the testing guidance is unambiguous and supported by the referenced example.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.