temporal-python-testing

Installation
Summary

Pytest-based testing strategies for Temporal workflows with time-skipping, mocking, and replay validation.

  • Covers unit testing (WorkflowEnvironment with time-skipping), integration testing (mocked activities), and replay testing for determinism validation
  • Time-skipping enables month-long workflows to execute in seconds; ActivityEnvironment isolates activity logic for fast feedback
  • Includes progressive disclosure resources for unit testing, integration testing, replay testing, and local Temporal server setup
  • Recommends ≥80% coverage targets and provides pytest fixtures, error injection patterns, and CI/CD integration guidance
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 integration tests
  • Use pytest with async fixtures
Related skills

More from wshobson/agents

Installs
6.3K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 20, 2026