Closed dsokal closed 2 years ago
**Goal** Document how to run tests on EAS Build, even though we haven't designed any affordances for this yet. If we encounter blockers to doing this, try to remove them. **Description** * Running unit tests (likely just recommend a build hook) * E2E testing (eg: detox and react-native-owl) using iOS simulators / Android emulators This task is pretty open ended. I think a good first step is to figure out how to get e2e tests (running inside of simulator/emulator) running at all on EAS Build.
Use the new EAS Build feature - uploading build artifacts - to upload screenshots from failed E2E tests.
test_fn_failure
event and set a global variabletestFailed
to indicate that the test failed.afterEach
hook that checks thetestFailed
variable and take a screenshot.buildArtifactPaths
with glob pattern for screenshots to eas.json.Next: update https://docs.expo.dev/build-reference/e2e-tests/