You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing an API wrapper as a library and just started using DVR in my tests, loving it! I'd really love my library staying compatible with Cocoapods, Carthage and Swift Package Manager. This world of three different package managers to support is really something in this ecosystem 😃. My dependencies are declared and integrated via Carthage, which works just fine. Cocoapods doesn't really need to know about DVR since that never runs my tests anyhow. Buuut I kinda still want to be able to run swift test... Is there any way to currently accomplish this?
I don't think SPM supports private/dev/test dependencies, does it? Or would it make sense to include DVR as a normal dependency but only require it in test files? Not sure how Swift handles that...
Nevertheless, support for SPM here would be superb and much appreciated. If it makes sense of course. Thanks! 😊
The text was updated successfully, but these errors were encountered:
On second thought, SPM projects have no concept of a bundle, so they would also fail finding any cassettes. I guess this is something for the future 🤷♂️
Now that swift package manager supports testTargets I think it would be great to have support for building with SPM. Is this anywhere on the roadmap, and would PR's be accepted?
I'm writing an API wrapper as a library and just started using DVR in my tests, loving it! I'd really love my library staying compatible with Cocoapods, Carthage and Swift Package Manager. This world of three different package managers to support is really something in this ecosystem 😃. My dependencies are declared and integrated via Carthage, which works just fine. Cocoapods doesn't really need to know about DVR since that never runs my tests anyhow. Buuut I kinda still want to be able to run
swift test
... Is there any way to currently accomplish this?I don't think SPM supports private/dev/test dependencies, does it? Or would it make sense to include DVR as a normal dependency but only require it in test files? Not sure how Swift handles that...
Nevertheless, support for SPM here would be superb and much appreciated. If it makes sense of course. Thanks! 😊
The text was updated successfully, but these errors were encountered: