Test audit: remove low-value tests, repair tests that cannot fail, adopt a test authoring gate

Đã đóng
#168 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của code-yeongyu/lazycodex

Tất cả issue của code-yeongyu/lazycodex

Issue tương tự

Thêm issue về TypeScript

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.