Comments (2)
Interesting. I wonder if it's worth copying VCR's block-/closure-style usage of cassettes as well, like:
VCR.use_cassette("Things") do
do_things
end
so maybe something like:
session.record("Things") { session in
session. dataTaskWithRequest(...)
}
Just kinda brainstorming!
from dvr.
Ya I like that approach. I wrote some VCR tests yesterday and really liked that. I'll think on it some more. VCR just replaces system networking with their own for you and we have to DI things.
from dvr.
Related Issues (20)
- Fatal error when using DownloadTask when cassette is not available HOT 1
- Encode `application\/x-www-form-urlencoded` as a string
- Automatic redacting HOT 2
- Options for how requests are matched HOT 1
- Ignore BaseURL HOT 1
- [DVR.Session delegate]: unrecognized selector HOT 1
- Ignore URL's query string when checking for interaction presence. HOT 2
- TV OS support HOT 2
- Not recording any files? HOT 1
- Update Pod Spec to version 1.0 HOT 7
- Swift Package Manager HOT 3
- Testing api failures HOT 3
- HTTP status codes not recorded when not 200. HOT 1
- Improve README documentation
- Xcode 10 build error
- Version 1.3.0 is breaking: cassettes cannot be found HOT 13
- Version 1.3 and 1.3.1 not available on Cocoapods HOT 5
- Version 2.0.0 Not pushed to cocoapods trunk HOT 2
- Swift 5.1 - [Session defaultTaskGroup]: unrecognized selector sent to instance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvr.