Testing docs#141
Merged
Merged
Conversation
FranzBusch
reviewed
Apr 29, 2026
3248385 to
b81e4a8
Compare
heckj
requested changes
Apr 30, 2026
heckj
left a comment
Contributor
There was a problem hiding this comment.
A variety of small tips and rewording suggestions to aim for more direct voice and to align more closely to Apple's style patterns, but structurally there's a biggest question of repeating the example of the integration test in two places that may be best resolved as putting it in a single place and keeping the first article focused on unit testing, and the second on integration testing and their associated patterns and use cases.
Covers unit testing with withActivityTestEnvironment (heartbeat assertion, cancellation), and integration testing with the test server trait. Co-Authored-By: Franz Busch <f.busch@apple.com>
Covers integration testing with signals/queries/updates, time-skipping for timer-dependent workflows, and replay testing with WorkflowReplayer. Co-Authored-By: Franz Busch <f.busch@apple.com>
FranzBusch
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #115, #116.
Motivation
Add testing guides for workflows and activities to enhance documentation.
Modifications
Testing-Activities.mdcovering unit tests withwithActivityTestEnvironmentand integration tests with the test server trait.Testing-Workflows.mdcovering signals/queries/updates, time-skipping, and replay testing.Result
Docs for testing workflows and activities.
Test Plan
All code examples verified against source signatures and compilation-tested.