Skip to main content

test

Run tests (frontend, backend, unit, or all)

来源信息

仓库
openshift/console
最近来源活动
2026年2月10日 14:10
检测到的 SKILL.md 语言
英语
星标
460
分支
766

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
test
description
Run tests (frontend, backend, unit, or all)
argument-hint
[frontend|backend|unit <name>|all]
# /test Run tests based on the arguments provided: - If `$ARGUMENTS` contains "frontend", run `./test-frontend.sh` - If `$ARGUMENTS` contains "backend", run `./test-backend.sh` - If `$ARGUMENTS` contains "unit", run `cd frontend && yarn test` and pass any additional arguments after "unit" - If no arguments or `$ARGUMENTS` contains "all", run `./test-frontend.sh` first (to generate i18n files), then run `./test-backend.sh` Note: When running all tests, the frontend tests must run first because they generate i18n localization files. If the backend tests run in parallel during i18n generation, the backend vendor check will detect these generated files as git changes and fail. Examples: - `/test` or `/test all` - Run all tests - `/test frontend` - Run frontend tests only - `/test backend` - Run backend tests only - `/test unit` - Run Jest unit tests - `/test unit MyComponent` - Run Jest unit tests matching "MyComponent" - `/test frontend backend` - Run both frontend and backend tests Report the results from the test suite(s). If any tests fail, troubleshoot the failures and fix them.
在 GitHub 查看