meticulous-test
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTo test a frontend change using Meticulous, follow the workflow below step by step, using the CLI commands as described.
Before starting, run theskill to ensure the Meticulous CLI is up to date — unless it has already run earlier in this conversation, in which case skip it.meticulous-cli-update
如需使用Meticulous测试前端变更,请按照以下步骤逐步执行,使用下文所述的CLI命令。
开始前,请运行技能确保Meticulous CLI为最新版本——除非在本次对话中已经运行过该命令,否则无需重复执行。meticulous-cli-update
Step 1 -- Trigger Meticulous test run
步骤1 -- 触发Meticulous测试运行
If you are already given a test run id, then skip this step.
- If possible, find out what build artefact Meticulous expects by checking for one of the following steps:
.github/workflows/- - build assets
uses: alwaysmeticulous/report-diffs-action/upload-assets@v1 - - docker image
uses: alwaysmeticulous/report-diffs-action/upload-container@v1
- Build the frontend following the same instructions as used in the GitHub workflow.
- Upload the build artefact and trigger a Meticulous test run:
undefined如果已提供测试运行ID,请跳过此步骤。
- 如有可能,通过检查中的以下步骤之一,确定Meticulous所需的构建产物:
.github/workflows/- - 构建资源文件
uses: alwaysmeticulous/report-diffs-action/upload-assets@v1 - - Docker镜像
uses: alwaysmeticulous/report-diffs-action/upload-container@v1
- 按照GitHub工作流中使用的相同说明构建前端项目。
- 上传构建产物并触发Meticulous测试运行:
undefinedupload-assets
upload-assets
meticulous ci upload-assets --appDirectory <path-to-build> --repoDirectory <path-to-repo> --waitForTestRunToComplete
meticulous ci upload-assets --appDirectory <path-to-build> --repoDirectory <path-to-repo> --waitForTestRunToComplete
upload-container
upload-container
meticulous ci upload-container --localImageTag <image-tag> --repoDirectory <path-to-repo> --waitForTestRunToComplete
`--appDirectory` must point to the build output directory (e.g., `dist/` subfolder), whereas `--localImageTag` must point to the local Docker image tag. The `--repoDirectory` must point to the root of the git repository (e.g., `.`). The `--waitForTestRunToComplete` flag is required.
The command will finish with status `Failure` if visual differences have been detected. Note the `testRunId` from the output.meticulous ci upload-container --localImageTag <image-tag> --repoDirectory <path-to-repo> --waitForTestRunToComplete
`--appDirectory`必须指向构建输出目录(例如`dist/`子文件夹),而`--localImageTag`必须指向本地Docker镜像标签。`--repoDirectory`必须指向git仓库的根目录(例如`.`)。`--waitForTestRunToComplete`参数为必填项。
如果检测到视觉差异,命令将以`Failure`状态结束。请记录输出结果中的`testRunId`。Step 2 -- Review the visual changes
步骤2 -- 审核视觉变更
Follow the skill, passing the from Step 1. It fetches the diff summary, inspects representative screenshots / DOM diffs / timelines, and produces a final report classifying each visual change as intended or unintended.
meticulous-reviewtestRunId遵循技能的流程,传入步骤1中获取的。该技能将获取差异摘要,检查代表性截图/DOM差异/时间线,并生成最终报告,将每个视觉变更分类为预期或非预期变更。
meticulous-reviewtestRunId