Question

Mock RevenueCat for unit testing in iOS

  • 12 November 2023
  • 1 reply
  • 49 views

Badge +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

Userlevel 4
Badge +8

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