feat: add --all --run autopilot mode for instant write-and-test execution

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-07 16:45:45 +07:00
parent 2045c856e9
commit 6fc49787a9
3 changed files with 55 additions and 41 deletions
+9 -9
View File
@@ -101,20 +101,20 @@ Mở Claude Code (`claude`) tại thư mục dự án và chạy skill:
```
Agent sẽ tự động kiểm tra `composer.json`, kiểm tra database test SQLite và tự cài đặt các package còn thiếu.
### Bước 3: Sinh Unit Test Tự Động
### Bước 3: Sinh Unit Test Tự Động & Chạy Test Ngay
Chỉ định class, thư mục, hoặc phủ toàn bộ dự án:
```bash
# 🌟 1 lệnh duy nhất phủ test toàn bộ dự án (cam kết không sót file):
/laravel-unit-test --all
# 🌟 1 lệnh duy nhất Autopilot: Tự động viết test cả dự án & TỰ CHẠY TEST LUÔN:
/laravel-unit-test --all --run
# Cho cả thư mục / module:
/laravel-unit-test app/Services/
# Sinh test cho 1 file & tự động chạy test kiểm tra ngay:
/laravel-unit-test app/Services/PaymentService.php --run
# Cho các file vừa sửa trên Git (trước khi tạo PR):
/laravel-unit-test --changed
# Cho cả thư mục / module & test luôn:
/laravel-unit-test app/Services/ --run
# Cho 1 class đơn lẻ:
/laravel-unit-test app/Services/PaymentService.php
# Cho các file vừa sửa trên Git & test luôn (trước khi tạo PR):
/laravel-unit-test --changed --run
```
### Bước 4: Chạy Kiểm Thử