Test audit: remove low-value tests, repair tests that cannot fail, adopt a test authoring gate
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- testing-qa, tooling
Hướng nghiên cứu
Start by reading the complete evidence for audit batches L1, L2, and G5, then inspect the repository's agent instructions and the affected tests on the unedited base. Re-run each affected test and keeper test before changes, and use mutation proofs for repairs or consolidations. Done means the batches are merged or explicitly declined, the authoring gate is adopted, and comparable BEFORE/AFTER measurements are posted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
A test audit of this repository (method: the openclaw test-audit skill: authoring gate, junk-pattern list, retention bar, full evidence per candidate) found 3 candidates with complete evidence: tests that duplicate a stronger owner test, tests that cannot fail, and test-only production seams. This issue tracks applying them as small atomic PRs, one per owner boundary, plus adopting a test authoring gate in this repository's agent instructions.
Every PR re-runs the affected tests and their keeper tests on the unedited base first. A retained test that fails on the base is treated as a product bug and fixed at its owner, never deleted. Every consolidation or repair carries a mutation proof (a deliberate break of the production owner turns the keeper red, then the owner is restored byte for byte).
Expected (ideal state)
| Property | Why |
|---|---|
| Every test protects observable behavior, a credible regression, or an independently meaningful contract | Confidence, not deletion count |
| Every junk test with complete evidence is deleted, consolidated into its named keeper, or repaired so it can fail | Low-value tests cost CI time and mislead reviewers |
| Test-only production seams unlocked by those deletions are removed | Production code whose only callers are tests is dead weight |
| Assertions that can never fail are repaired, each proven by a mutation that turns it red | A test that cannot fail proves nothing |
| Valuable tests that run in no CI job are routed into CI | Coverage that never runs is not coverage |
| The repository's agent test rules carry the authoring gate, junk-pattern list and retention bar, with conflicting older rules reconciled | New junk stops arriving |
| Test/support/production line counts and CI time are measured before and after with the same tool | The effect is stated in numbers |
Acceptance criteria
- Every audit batch for this repository merged or explicitly declined with a reason (planned batches: L1, L2, G5)
- The test authoring gate adopted in this repository's agent instructions
- BEFORE/AFTER numbers (test files, test/support/production lines, CI job times or a stated "not comparable") posted here
- Ngôn ngữ chính
- TypeScript
- Star
- 3.8k
- Fork
- 247
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của code-yeongyu/lazycodex
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code-yeongyu/lazycodex#170 ·
-
Fix Codex browser QA routing before standalone PlaywrightCó thể đã có người làm @berkshirehathaways đã nhận 91 ngày trước. Đang mở
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 72/100
code-yeongyu/lazycodex#148 ·
-
teammode tells leaders to spawn V2 members without agent_type, which the spawn guard deniesCó thể đã có người làm @LilMGenius đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
code-yeongyu/lazycodex#173 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
code-yeongyu/lazycodex#172 ·
-
[5.0.0-beta.78] High cost and rapid quota consumption: use role-appropriate agent model defaultsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
code-yeongyu/lazycodex#166 ·
Tất cả issue của code-yeongyu/lazycodex
Issue tương tự
-
docker infra P1 security size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
josephfung/curia#2408 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ehmpathy/rhachet-roles-ehmpathy#1231 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
danielw-sudo/agentuto#32 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nightgauge/nightgauge#2836 ·
Maintainer thường phản hồi trong vòng 1 ngày