mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-04 08:13:30 +08:00
docs(zh-CN): sync Chinese docs with latest upstream changes
This commit is contained in:
@@ -12,7 +12,7 @@ paths:
|
||||
|
||||
## 测试框架
|
||||
|
||||
默认使用 **PHPUnit** 作为测试框架。如果项目已在使用 **Pest**,也是可以接受的。
|
||||
使用 **PHPUnit** 作为默认测试框架。如果项目中配置了 **Pest**,则新测试优先使用 Pest,并避免混合使用框架。
|
||||
|
||||
## 覆盖率
|
||||
|
||||
@@ -30,6 +30,11 @@ vendor/bin/pest --coverage
|
||||
* 使用工厂/构建器来生成测试数据,而不是手动编写大量的数组。
|
||||
* 保持 HTTP/控制器测试专注于传输和验证;将业务规则移到服务层级的测试中。
|
||||
|
||||
## Inertia
|
||||
|
||||
如果项目使用了 Inertia.js,优先使用 `assertInertia` 搭配 `AssertableInertia` 来验证组件名称和属性,而不是原始的 JSON 断言。
|
||||
|
||||
## 参考
|
||||
|
||||
关于整个仓库范围内的 RED -> GREEN -> REFACTOR 循环,请参见技能:`tdd-workflow`。
|
||||
查看技能:`tdd-workflow` 以了解项目范围内的 RED -> GREEN -> REFACTOR 循环。
|
||||
查看技能:`laravel-tdd` 以了解 Laravel 特定的测试模式(PHPUnit 和 Pest)。
|
||||
|
||||
Reference in New Issue
Block a user