heckj / swiftui-notes

content for Using Combine - notes on learning Combine with UIKit and SwiftUI
https://heckj.github.io/swiftui-notes/
MIT License
1.98k stars 205 forks source link

Debounce, Throttle tests need to be broken up, potentially re-written #229

Open heckj opened 4 years ago

heckj commented 4 years ago

The debounce and throttle tests are showing more and more differences between the CI system and running locally on my laptop with a simulator, vs. running on a device. Quite possibly I need to just bite the bullet and engage a TestScheduler mechanism here that's not effected by underlying system performace (Entwine) in order to make sure I'm getting accurate results, and on top of that the tests probably need to be broken out to be more easily consumable to anyone else reading them. I am finding them hard to parse when they break/change, so anyone else probably has it worse.

heckj commented 4 years ago

Since Entwine has come out, the folks at PointFreeCo have some equivalent kinds of scheduler pieces, and it looks like it might be even easier to use - so maybe worth checking into:

https://github.com/pointfreeco/combine-schedulers