Skip to content

Build out examples/documentation for unit testing Workflows/activities#1708

Open
daanschutte wants to merge 8 commits intodapr:masterfrom
daanschutte:daanschutte/workflow-tests
Open

Build out examples/documentation for unit testing Workflows/activities#1708
daanschutte wants to merge 8 commits intodapr:masterfrom
daanschutte:daanschutte/workflow-tests

Conversation

@daanschutte
Copy link
Contributor

Description

Improves testing examples for Dapr Workflows by adding test coverage for additional concepts and fixing documentation issues.

  • Changes to the README:
    • Corrected the port to match the default
    • Reordered startup sequence to prevent launch errors (start Dapr sidecar before program)
    • Added a table to expand on which concepts are tested
  • Added more tests
    • TestHighCostOrderApproved: Mock external events (WaitForExternalEventAsync) and verify custom status
    • TestHighCostOrderApprovalTimeout: Simulate timeouts with TaskCanceledException
    • TestActivityException: Simulate activity failures with WorkflowTaskFailedException
  • Dropped unused test file

Issue reference

Addresses #1532 by improving test coverage. Additional improvements may be needed - open to suggestions.

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@daanschutte daanschutte requested review from a team as code owners February 13, 2026 05:39
@daanschutte daanschutte force-pushed the daanschutte/workflow-tests branch from 1fc211a to 5936958 Compare February 13, 2026 05:45
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
Signed-off-by: Daan Schutte <daan.schutte@icloud.com>
@daanschutte daanschutte force-pushed the daanschutte/workflow-tests branch from 41c5400 to ffd3857 Compare February 14, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant