Improve Tests Setup
nikgraf opened this issue · 0 comments
nikgraf commented
The main thing we want to test is to make sure if the bindings work. That's why the best way to test it seems to be booting up the app in a simulator and run tests there.
The plan is to have the example app testing all the different bindings with various inputs. If an input doesn't match an exception should be thrown. This example app then can be tested using a e2e testing tools.
Tasks:
- restructure the example app so each test is a separate component with assertions that throw an error in case they fail, in case of success they can show the result e.g. an image
- setup detox for iOS Simulator and make sure it checks for a successful example app
- setup detox on Github actions
- setup playwright for the Web version
- setup playwright on Github actions
- setup detox for Android Simulator and make sure it checks for a successful example app
- setup detox Android on Github actions
Suggestions and ideas how to improve or simplify this approach are very welcome :)