Skip to main content
Question

Mock RevenueCat for unit testing in iOS

  • 12 November 2023
  • 1 reply
  • 131 views

Forum|alt.badge.img+2

Is there a simple way to mock RevenueCat to return hardcoded responses for unit testing purposes? One option is to use the StoreKit Testing framework, but then RC still makes an outbound server call for every request which goes deeper than I'd like to for unit testing purposes.

1 reply

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 432 replies
  • November 17, 2023

Hi, at this time using StoreKit Testing framework would be the only way to do this, but I can pass this along to the team as feedback.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings