devcontainers / devcontainers/cli

[Enhancement] Add proper feature testing library/framework

Đang mở
#1,013 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.