ohos-dev-graphics-pixel-tests-generator

Official

Generate stable Rosen graphic pixel test cases.

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of reliably creating OpenHarmony Rosen graphic pixel-compare test cases that produce stable screenshots for review and regression detection.

Core Features & Use Cases

  • Pixel-test test case generation for Rosen graphic_test: Generates C++ tests consistent with the repository style and framework expectations for graphic pixel comparison.
  • Correct RSGraphicTest setup and macros: Helps you choose the right RSGraphicTestType and the proper GRAPHIC_TEST/GRAPHIC_TESTS/GRAPHIC_N_TEST/GRAPHIC_D_TEST usage to match the scenario.
  • Lifecycle-safe node registration and rendering determinism: Ensures every render node that must survive screenshot capture is added and registered (RegisterNode) to avoid blank or flaky images.

Quick Start

Use the ohos-dev-graphics-pixel-tests-generator skill to generate a new C++ pixel compare test under graphic_test/test that validates the screenshot difference for the specific RSGraphicTestType you specify.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ohos-dev-graphics-pixel-tests-generator
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#ohos-dev-graphics-pixel-tests-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.