elgatosf / streamdeck-kit-ipad

Swift library for controlling Stream Deck hardware from an iPadOS application.
https://docs.elgato.com/ipad
MIT License
21 stars 1 forks source link

Feature/ipad 17 testing #5

Closed beyama closed 8 months ago

beyama commented 8 months ago

@r-dent I wrapped the precondition checks (waitFor) in do/catch blocks and just used XCTFail so we do not have all those tries in the test. But maybe it makes sense to make precondition checks throwing (just like XCTUnwrap). I created this draft PR for discussion. If you try to do a snapshot for a value in an array that doesn't exist there is not much I can do about but with this PR it should at least fail in case of a regression.