test: Consider moving some testing from unit to cli level

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Active
Tech stack
clojure
Domain
cli, testing

Research direction

Start by reading the bbin fn in test-util to see how it invokes the CLI. Then review existing unit tests, especially those related to #44 and #124, to identify candidates for migration. Done means those tests exercise the CLI via bbin rather than calling functions directly.

Written by the indexing model from the issue text.

Description

While working on #44, I learned about test-util's bbin fn, which effectively tests from the cli interface.

I was thinking that, where possible, we should consider testing from bbin instead of at the unit level.

Especially now since I've added cli validation and option coercions, this would help us uncover more problems.

Fearing that this work would make #124 too big, I created this issue instead.

Let me know if you like this idea; I'd be happy to give it a whirl.

Dominant language
Clojure
Stars
195
Forks
15
Avg merge
1m
Merged PRs (30d)
2

Getting set up

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.

More from babashka/bbin

All issues in babashka/bbin

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.