Regression — /qa-full:regression

Chạy Regression Check sau khi sửa code. Phân tích vùng ảnh hưởng và đảm bảo không phá features khác.

Cú pháp


4 Bước

1

Bước 1: Phân tích impact zone

Grep tìm TẤT CẢ files import/reference file được chỉ định.Output:
2

Bước 2: Chạy tests trong impact zone

Tìm test files cho impact zone. Chạy chỉ tests liên quan.Output: Pass/fail trong impact zone.
3

Bước 3: Generate tests thiếu (nếu cần)

Files trong impact zone chưa có test → tạo mới.Output: New test files.
4

Bước 4: Report


Khi nào dùng

  • Dev sửa code cũ, cần đảm bảo không phá features khác
  • Refactor module được nhiều nơi dùng
  • Upgrade dependency có breaking changes
  • Sửa bug mà logic liên quan nhiều files
Regression chỉ focus vào vùng ảnh hưởng của file được chỉ định. Nếu cần kiểm tra toàn bộ project, dùng /qa-full:full.

Prefix: /regression-suite, /regression-suite --critical-pathTạo regression test suite cho critical user flows. Đảm bảo coverage đầy đủ trên high-risk paths.
Khi dùng: Trước release hoặc khi cần regression suite bao quát cho feature quan trọng
Prefix: /test-flakiness <file>, /test-flakiness --reportChạy tests nhiều lần để detect flaky tests. Auto-fix bằng retry, timeout, hoặc isolation.
Khi dùng: Khi tests không ổn định hoặc trước release