Skip to content

New OAuth2MockPerformer #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DominikPalo
Copy link
Member

@DominikPalo DominikPalo commented Jul 2, 2025

This change introduces an enhanced version of OAuth2MockPerformer, delivering greater flexibility and advanced features for simulating network requests.

Key improvements:

  • Enhanced asynchronous testing:
    • ability to simulate network delays
    • support for dynamic responses based on request parameters
  • Improved Swift 6 concurrency mode, by resolving several concurrency warnings
  • Easier usage (thanks to convenience initializers)

Note

I included also an example test called testDoExchangeRefreshToken to demonstrate advanced use of the new OAuth2MockPerformer. Many future tests will rely on the flexibility of new OAuth2MockPerformer.

@DominikPalo DominikPalo force-pushed the feature/X-improved-OAuth2MockPerformer branch 4 times, most recently from 78909fb to 3409a39 Compare July 2, 2025 13:33
to demonstrate flexibility and advanced use of new `OAuth2MockPerformer`
@DominikPalo DominikPalo force-pushed the feature/X-improved-OAuth2MockPerformer branch from 3409a39 to 2508a04 Compare July 2, 2025 13:38
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.

2 participants