elgatosf / streamdeck-kit-ipad

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

Feature/ipad 17 testing #5

Closed beyama closed 9 months ago

beyama commented 9 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.