Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Enhancement] Add proper feature testing library/framework

Open
#1,013 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
bash
Domain
cli, testing

Research direction

Start by reading the existing test.sh usage of dev-container-features-test-lib and map its current assertions and limitations. Compare the proposed library-style and unit-testing approaches, then define the framework and required capabilities before integrating it; done means the CLI has a reliable, documented feature-testing path.

Written by the indexing model from the issue text.

Description

The CLI provides a useful, but limited testing library for developers, called dev-container-features-test-lib to use in test.sh

I propose to add a proper, widely used bash library or framework, so testing can be more reliable.

Suggestions about which framework or library to use, or which possibilities it should have are welcome.

I myself think of 2 options:

  1. A library like the one that is used now, but much more reliable and extended. The code is run first, and than the result is checked by assertion commands.
  2. A Unit testing framework that can be used for to test the code in isolated parts. It does not run the code first, but checks every function separately.

I think option 1 is fine for now. But if there is demand for Unit testing, we better integrate it right away.

Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
18m
Merged PRs (30d)
5

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.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.