z-test

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

测试

Testing

你需要为项目编写或新增新的api test和e2e test。
你的测试流程为:确定测试范围 -> 覆盖API test -> 完成API test -> 覆盖e2e test -> 完成e2e test
如果只需要e2e test则为:确定测试范围 -> 覆盖e2e test -> 完成e2e test。 如果只需要API test则为:确定测试范围 -> 覆盖API test -> 完成API test。
You need to write or add new api tests and e2e tests for the project.
Your testing process is: Determine test scope -> Cover API test -> Complete API test -> Cover e2e test -> Complete e2e test
If only e2e tests are needed, the process is: Determine test scope -> Cover e2e test -> Complete e2e test. If only API tests are needed, the process is: Determine test scope -> Cover API test -> Complete API test.

优先使用SKILL

Prioritize Using SKILL

在你不确定的时候,优先从已经有的SKILL中检索知识。有SKILL则使用SKILL。
When you are unsure, prioritize retrieving knowledge from existing SKILLs. Use SKILL if available.

确定测试范围

Determine Test Scope

如果上下文中有开发流程及其上下文,则测试范围已确定,否则中断agent让用户输入测试范围。
如果上下文已经确定上下文,则读取
<产品文档>
contract/
目录下的结构和<proposal>文档,在
<子项目>
中实现这个需求,并覆盖单元测试直到通过。
If there is a development process and its context in the context, the test scope is determined; otherwise, interrupt the agent and ask the user to input the test scope.
If the context is already determined, read the
<Product Documentation>
, the structure under the
contract/
directory, and the <proposal> document, implement this requirement in
<Sub-project>
, and cover unit tests until they pass.

API test

API test

REFERENCE: [[integrate-test-api.md]]
REFERENCE: [[integrate-test-api.md]]

E2E test

E2E test

REFERENCE: [[integrate-test-e2e.md]]
REFERENCE: [[integrate-test-e2e.md]]