Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup.
SkillScore100Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/21/2026
What it changes
Passed 23 of 23 test cases with the skill, and 18 of 23 without it.
Without skill78%
With skill100%
Checks it passed that the model alone missed
The three test types are unit, integration, and end-to-end.
Target at least 80% coverage for workflow and activity logic.
Use the `Replayer` class to replay stored workflow histories.
and 2 more in the full report
5 fixed18 passed either way0 still failing0 broke
Pass-rate lift
+22 pp
Tokens
+24%
Agent turns
0%
Response time
-32%
Model gemini-3.6-flashMeasured 8/21/2026v123 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
When validating that updated Temporal Python workflow code remains deterministic using JSON history files from production, which class from `temporalio.worker` handles history replaying?
What was checked, without and with the skill
Checked
Without skill
With skill
Use the `Replayer` class to replay stored workflow histories.
Missed
Passed
case-08 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md141 linessingle file
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