Spaces:
Sleeping
Sleeping
|
Download manual-test-coverage/README.vi.md from dangkhoa2016/Nodejs-JSON-API-Server: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/manual-test-coverage/README.vi.md
- Command line
-
hf download hf://spaces/dangkhoa2016/Nodejs-JSON-API-Server/manual-test-coverage/README.vi.md
-
curl -L -o README.vi.md https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/manual-test-coverage/README.vi.md
1.11 kB
Công cụ kiểm tra mức độ bao phủ
🌐 Language / Ngôn ngữ: English | Tiếng Việt
Thư mục này chứa script để kiểm tra mức độ bao phủ mã nguồn (code coverage) qua lịch sử commit.
Các file
verify-commit-coverage.sh— duyệt từng commit trong một khoảng, kiểm tra coverage, tạo báo cáocoverage-report.md— báo cáo markdown được sinh ra (đã gitignore)results/— nhật ký thô từng commit (đã gitignore)
Cách dùng
Chạy từ thư mục gốc của dự án:
bash manual-test-coverage/verify-commit-coverage.sh
Có thể chỉ định khoảng commit:
bash manual-test-coverage/verify-commit-coverage.sh <base-sha> <head-sha>
Mỗi commit được checkout, chạy yarn test:coverage, thu thập tỷ lệ coverage, và ghi báo cáo markdown vào coverage-report.md.
Yêu cầu
yarnvàvitestđã cấu hình--coverage- (Không bắt buộc)
mise— nếu có, script sẽ dùng nó để khôi phục môi trường Node.js cho mỗi commit