Gui Integration Test Video

SKILL内容创作
内容创作 未标注权限 许可证不明确

GUI desktop app only. Run and author Warp Rust integration tests (the `crates/integration` harness) that capture screenshots and video via `TestStep::with_start_recording()` / `with_take_screenshot()`, including mouse and keyboard event overlays. TRIGGER only for the integration-test recording pipeline: recording or screenshotting a named integration test, authoring a test that captures video/screenshots, or reviewing artifacts a test produced. SKIP for any general request to screenshot or record the running Warp app or a UI flow — capture those with the computer use tool's built-in screen recording / screenshots, not this skill.

一句话选型结论

按资料字段整理

Gui Integration Test Video是内容创作类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类内容创作 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 warp
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

内容创作
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方warpdotdev仓库 warp · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 warpdotdev/warp
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 2026-07-10
正文体量10.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写文章与脚本

按主题产出初稿与分镜脚本。

改稿与润色

把草稿改顺、统一语气。

多平台文案改写

同一内容按平台改成长短不同的版本。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在内容创作场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Gui Integration Test Video当前 未标注权限 GitHub 仓库 未标注 未标注 无
AI 视频生成 调用外部服务 GitHub 仓库 431.3 万 Codex、Claude、Cursor 有
视频帧 联网访问 ClawHub 市场 262.1 万 OpenClaw 有
Markdown 转换器 写入文件 ClawHub 市场 135.3 万 OpenClaw 有
哔哩哔哩全合一 接触敏感数据 ClawHub 市场 64.1 万 OpenClaw 有
Remotion video toolkit 命令行 浏览器控制 ClawHub 市场 63.9 万 OpenClaw 有

SKILL.md 全文

10.0 KB
模型实际读到的说明书原文,来自技能仓库

Integration Test Video Recording

Scope — GUI desktop app only. This skill applies to Warp's GUI desktop front-end (the app/ crate on the WarpUI pixel/GPU framework). It does not apply to the headless TUI front-end (crates/warp_tui; cell-grid TuiElement library under crates/warpui_core/src/elements/tui), which has its own components, tests, and change-verification workflow. For TUI work, see the tui-ui-guidelines, tui-testing, and tui-verify-change skills instead.

Use this skill when working with Warp's integration test recording pipeline on this branch.

When NOT to use this skill

This skill is only for capturing screenshots/video from within the Rust
integration-test harness (crates/integration). It is not the way to fulfill
a general "take a screenshot" or "record a video" request against the running
Warp app or a live UI flow. For those, use the computer use tool, which
exposes screenshot and screen-recording (start/stop recording) capabilities that
drive the real app — don't reach for this integration-test tooling just because a
request mentions "recording" or "screenshot."

The relevant implementation lives in:
- integration/src/bin/integration.rs
- integration/src/test/video_recording.rs
- integration/tests/integration/ui_tests.rs
- ui/src/integration/driver.rs
- ui/src/integration/step.rs
- ui/src/integration/video_recorder.rs
- ui/src/integration/artifacts.rs
- ui/src/integration/overlay.rs

Command to invoke a test

For a single manually-invoked recording test, prefer the integration binary:

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 \
cargo run -p integration --bin integration -- test_video_recording

That is the command shown by the sample test in integration/src/test/video_recording.rs.

If you want the driver to auto-record a test or set of tests, add WARP_INTEGRATION_TEST_VIDEO:

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 \
WARP_INTEGRATION_TEST_VIDEO=test_video_recording \
cargo run -p integration --bin integration -- test_video_recording

For broader integration test runs, the same env vars work with the normal test runner:

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 \
WARP_INTEGRATION_TEST_VIDEO=test_foo,test_bar \
cargo nextest run --no-fail-fast --workspace test_foo

Environment variables

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS

  • Set this to 1 when you need real frame capture.
  • Use it for screenshot/video workflows and manual visual verification.
  • Without a real display, expect recording workflows to be incomplete or unusable.

WARP_INTEGRATION_TEST_VIDEO

This is the main env var that controls driver-managed video recording in ui/src/integration/driver.rs.

Behavior:
- Unset or empty: auto-recording is disabled.
- 1 or all: auto-record every test in the run.
- Comma-separated test names: auto-record only those tests.

Examples:

# Record every test in the run
WARP_INTEGRATION_TEST_VIDEO=all
# Record only specific tests
WARP_INTEGRATION_TEST_VIDEO=test_foo,test_bar

Important nuance:
- You do not need WARP_INTEGRATION_TEST_VIDEO if the test itself explicitly calls with_start_recording() and with_stop_recording().
- Use the env var when you want whole-test recording without changing the test code.

WARP_INTEGRATION_TEST_ARTIFACTS_DIR

This controls the root artifact directory used by TestArtifacts in ui/src/integration/artifacts.rs.

If unset, artifacts go under:

$TMPDIR/warp_integration_test_artifacts

Each run gets a timestamped directory:

<artifacts_root>/<test_name>/<timestamp>/

This is the main directory to inspect for screenshots, logs, and the final recording.mp4.

WARP_INTEGRATION_TEST_VIDEO_DIR

This env var exists in ui/src/integration/video_recorder.rs as the lower-level recorder output root helper, defaulting to:

$TMPDIR/warp_integration_video_captures

On this branch, the normal integration driver flow writes the finalized video into the test artifacts directory instead, so WARP_INTEGRATION_TEST_ARTIFACTS_DIR is the one you usually care about when reviewing results.

How to specify which tests to record

There are two modes:

1. Record in test code

Use TestStep::with_start_recording() and TestStep::with_stop_recording() inside the test itself. This is best when you only want to capture a specific span of the test.

2. Record from the environment

Set WARP_INTEGRATION_TEST_VIDEO to:
- all
- 1
- or a comma-separated list like test_a,test_b

This starts recording at the beginning of matching tests and writes the video when the test completes.

How overlays work

There is no separate overlay env var on this branch.

Overlay annotations are produced from the input events the test dispatches while recording is active. The overlay pipeline is implemented in ui/src/integration/overlay.rs, and the event capture hooks live in ui/src/integration/step.rs.

To get useful overlays in the final video, drive the test with APIs that emit mouse and keyboard events, such as:
- with_event(...)
- with_event_fn(...)
- with_click_on_saved_position(...)
- with_keystrokes(...)

Overlay types currently exercised by the sample test:
- mouse click indicators
- drag trails
- keyboard shortcut pills

In practice:
- Mouse down / drag / mouse up events create click and drag overlays.
- KeyDown events create keyboard overlay pills.
- If a test only records frames and never dispatches relevant input events, the resulting video will not show these annotations.

How to write a test that takes screenshots

Use TestStep::with_take_screenshot("filename.png").

Example pattern:

TestStep::new("Take screenshot after bootstrap")
    .with_take_screenshot("after_bootstrap.png")

The screenshot request is stored during the step and written by the driver after the step renders. The PNG lands in the test's timestamped artifacts directory.

How to write a test that records video

Minimum pattern

  1. Use Builder::new().with_real_display().
  2. Add a step with with_start_recording().
  3. Run the actions/events you want captured.
  4. Add a step with with_stop_recording().

Example shape:

Builder::new()
    .with_real_display()
    .with_step(TestStep::new("Start recording").with_start_recording())
    .with_step(/* actions and events */)
    .with_step(TestStep::new("Stop recording").with_stop_recording())

For overlay-friendly recordings

Prefer explicit UI-driving steps that emit mouse and key events:
- click with with_click_on_saved_position(...)
- dispatch raw mouse events with with_event(...) / with_event_fn(...)
- send keyboard shortcuts with with_keystrokes(...)

For drag overlays, send a sequence like:
- LeftMouseDown
- one or more LeftMouseDragged
- LeftMouseUp

Optional validation

It is reasonable to add an with_on_finish(...) hook that checks for expected artifacts such as:
- recording.mp4
- recording.log
- screenshot PNGs

The sample test does exactly that.

Where the video assets go

The normal output location is:

${WARP_INTEGRATION_TEST_ARTIFACTS_DIR:-$TMPDIR/warp_integration_test_artifacts}/<test_name>/<timestamp>/

Common artifacts in that directory:
- recording.mp4
- recording.log
- any screenshots requested with with_take_screenshot(...)

For test_video_recording, the sample test expects:
- after_bootstrap.png
- after_commands.png
- recording.mp4
- recording.log

If MP4 encoding fails during finalization, the recorder falls back to per-frame PNGs in a sibling directory like:

recording_frames/

with files such as:

recording_0000.png

How to review the assets

  1. Open the latest timestamped artifact directory for the test.
  2. Review recording.mp4 first to confirm:
    - the UI state is correct
    - recording actually started and stopped in the intended window
    - overlay annotations appear at the right moments
  3. Review any PNG screenshots captured by the test.
  4. Check recording.log if the output looks incomplete or suspicious.
  5. If recording.mp4 is missing, look for fallback frame PNGs.

When summarizing results for the user, include the exact artifact directory path.

Sample test for video recording

The sample manual test is test_video_recording.

It is:
- registered in integration/src/bin/integration.rs
- listed in integration/tests/integration/ui_tests.rs
- implemented in integration/src/test/video_recording.rs

Run it with:

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 \
cargo run -p integration --bin integration -- test_video_recording

If you want full-test auto-recording from the environment as well, use:

WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 \
WARP_INTEGRATION_TEST_VIDEO=test_video_recording \
cargo run -p integration --bin integration -- test_video_recording

Working pattern for agents

When asked to record or debug an integration test with video:
1. Identify the exact test name.
2. Decide whether recording should be explicit in the test or enabled via WARP_INTEGRATION_TEST_VIDEO.
3. Ensure the run uses WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1.
4. If the user wants visible interaction overlays, make sure the test dispatches mouse and keyboard events while recording is active.
5. After the run, inspect the timestamped artifact directory and report the output paths back to the user.

常见问题

5 问
答案由本站依据条目字段整理
Gui Integration Test Video怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

Gui Integration Test Video支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Gui Integration Test Video权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Gui Integration Test Video收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Gui Integration Test Video用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。