AgentSkillsCN

temporal-testing-dotnet

针对Temporal .NET的工作流与活动,制定测试策略,重点突出时间跳过与确定性断言的应用。

SKILL.md
--- frontmatter
name: temporal-testing-dotnet
description: Testing strategies for Temporal .NET workflows and activities, emphasizing time-skipping and deterministic assertions.

Testing Temporal .NET (Time Skipping)

When to use

Use when asked:

  • “how do I test this workflow?”
  • “my tests are slow/flaky”
  • “can I use WebApplicationFactory?” (answer: not for workflow unit tests)

Required output

  • Test pyramid: workflow tests vs activity tests vs integration tests
  • Example workflow test using time-skipping (no real delays)
  • What to assert (behavior) vs what not to assert (implementation details)

Guardrails

  • Never use real timers for workflow unit tests.
  • Activity tests can be normal .NET unit tests where possible.