Idea: use any comment block as test
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 301
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
It would be great if RCF could use any comment block as test, without having to add special syntax or a dependency for a library.
(ns my-lib)
(defn add [a b] (+ a b))
^:hyperfiddle/rcf
(comment
(add 1 2) ;;=> 3
)
;;; rest of library namespace
This might require a different approach though and I could see that this would not be within RCF's scope. Just wanted to share the idea and see what you think of it. Feel free to migrate this issue to "Github Discussions" once you activate that in this repo, or close this issue.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing RCF’s existing test syntax and the comment-block example in the issue. Determine whether ordinary comment blocks can be recognized without special syntax or a library dependency; done means the example works as a test while preserving existing behavior and scope expectations.
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
- Mostly clear
- Newbie friendliness
- 20/100