用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/thin-edge/thin-edge.io --skill add-integration-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Expert Rust code review focused on correctness, testing, and idiomatic code. Use when reviewing a diff, file, or change for bugs, test gaps, and non-idiomatic Rust.
Create a new actor with builder in the thin-edge.io actor framework. Use when implementing a new concurrent component that processes messages.
Add a new configuration option to tedge_config. Use when adding a new setting to the thin-edge.io configuration in tedge.toml.
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-integration-test |
| description | Write a Robot Framework integration test for thin-edge.io. Use when adding end-to-end tests. |
.robot file in tests/RobotFramework/tests/<category>/*** Settings ***
Resource ../../resources/common.resource
Library ThinEdgeIO
Library Cumulocity # For interacting with the device management from Cumulocity
Test Setup Setup
Test Teardown Get Logs
Library Cumulocity while testing device integration with Cumulocity,
like asserting telemetry or inventory data sent by the device to the cloud or
to trigger device management operations from the device to the cloudTest Tags theme:<category>
*** Test Cases ***
My Test Case Description
Execute Command tedge mqtt pub te/device/main///m/test '{"value": 42}'
# Use assertion keywords to verify behavior
just integration-test --test PATTERNdocker ps -q --filter ancestor=debian-systemd | tail -n1debian-systemd image, simulating child devices as welljournalctl:
journalctl -f -u tedge-mapper-c8yjournalctl -f -u tedge-agentmqtt-log --output ndjsondocker (CI default), ssh (remote devices), local (localhost).env file with cloud credentials (template at tests/RobotFramework/devdata/env.template)tests/RobotFramework/libraries/ThinEdgeIO/ThinEdgeIO.pytests/RobotFramework/resources/common.resourceRead these for patterns:
tests/RobotFramework/tests/tedge_write.robot — simple test structuretests/RobotFramework/tests/cumulocity/log/log_operation.robot — for interactions with Cumulocitytests/RobotFramework/resources/common.resource — shared variables and resource setuptests/RobotFramework/libraries/ThinEdgeIO/ThinEdgeIO.py — available keywords