temporal-python-testing
仓库创建 2025年7月25日最近提交 5 天前SkillHot 收录 21 天前
▸ 精选理由
帮助快速构建可靠的 Temporal 工作流测试套件。
这个 Skill 做什么
面向 Temporal 的 Python 测试策略,包括时间跳跃与模拟。
用 Python + pytest 来测试 Temporal 工作流,支持时间跳跃、活动模拟和回放(replay)验证确定性,能覆盖单元、集成和本地开发场景。写单测时用时间跳跃把长时间等待变成瞬间,集成测试用 mocking 隔离外部依赖,回放测试用生产历史找非确定性问题。特别之处是把时间控制和回放工具化,让本地调试和定位失败变得高效可靠。
▸ 展开 SKILL.md 英文原文
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.
3.8w
Stars
4.1k
Forks
40
仓库内 Skill
+713
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/temporal-python-testing/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/temporal-python-testing/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Temporal Python Testing Strategies Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios. ## When to Use This Skill - **Unit testing workflows** - Fast tests with time-skipping - **Integration testing** - Workflows with mocked activities - **Replay testing** - Validate determinism against production histories - **Local development** - Set up Temporal server and pytest - **CI/CD integration** - Automated testing pipelines - **Coverage strategies** - Achieve ≥80% test coverage ## Testing Philosophy **Recommended Approach** (Source: docs.temporal.io/develop/python/testing-suite): - Write majority as integrat
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有