devcontainers / devcontainers/cli

[Enhancement] Add proper feature testing library/framework

オープン
#1,013 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず `test.sh` における既存の `dev-container-features-test-lib` の使用方法を読み、現在のアサーションと制約を整理します。提案されているライブラリ形式のアプローチとユニットテストのアプローチを比較し、統合する前に framework と必要な機能を定義します。完了の条件は、CLI に信頼性があり、ドキュメント化された feature テストの手段があることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bash
領域
cli, testing
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。