AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 602 forks source link

Mocktail support #331

Closed santiagotimothy closed 3 years ago

santiagotimothy commented 3 years ago

New Issue Checklist

Environment

Issue Description

Our project is moving to Swift Package Manager from Carthage (OHHTTPStubs 8.0.0) and found out that Mocktails are not supported by the package generated by the project, any chance this gets supported soon?

Previous implementation:

OHHTTPStubs.stubRequests(usingMocktailNamed: file, in: self.bundle, error: &error)

notapplicableio commented 3 years ago

I'd like to use Mocktails, too. Via SPM.

natebird commented 3 years ago

It looks like @fabrizioCorut has an open PR for this - https://github.com/AliSoftware/OHHTTPStubs/pull/340.