Hi all, wondering if there is a sample project or blog post describing how to use Micro for UI testing in iOS or Android.
Hi! Which E2E test framework are you using?
We donβt have any example projects for the native mobile trackers unfortunately, but our React Native tracker has Detox tests using Micro.
1 Like
Hi @Miranda , Iβm using XCUITest for my testing.
Hi @ewphoria,
For usage with XCUITest, you can get inspiration from the integration tests in the iOS tracker. They are not UI tests, but the principle of how you set them up and use Micro would be the same.
There are a few things to point out there:
- This
Micro
test helper class which can be useful to check the results from Micro after tests run and to clear Micro before them - As an example of an integration test that uses Micro, you can see this one (notice the way we reset Micro in the setUp and how we check for presence of events at the end of the test).
- If you also want to run the tests in CI using Github actions, you can look here for how we set up Micro there