From 5e98cad093ed30d12103852e35363aba6290a647 Mon Sep 17 00:00:00 2001 From: Vladimir <70273239+vladimir-8@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:29:06 -0800 Subject: [PATCH] do not retry e2e tests while running locally --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 76ed0bbff..bc19e0ac2 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,11 @@ yarn test Setup: https://wix.github.io/Detox/docs/introduction/environment-setup +To run end-to-end tests locally make sure that + +* `APP_ENV` is set to `test` in `.env` file (don't forget to return it back to `dev` after testing). +* `COMMAND_PREFIX` in `commands.js` contains correct path to `coopcycle-web` project (required to run android tests against local CoopCycle instance). + Build the app: Android: @@ -159,13 +164,13 @@ Run tests: Android: ```sh -detox test -c android.emu.debug +detox test -c android.emu.debug --retries 0 ``` iOS: ```sh -detox test -c ios.sim.debug +detox test -c ios.sim.debug --retries 0 ``` Mics @@ -173,7 +178,11 @@ Mics Run a single test: ```sh -detox test -c ios.sim.debug e2e/foodtech/first_launch.spec.js +detox test -c android.emu.debug --retries 0 e2e/foodtech/first_launch.spec.js +``` + +```sh +detox test -c ios.sim.debug --retries 0 e2e/foodtech/first_launch.spec.js ``` Run a single test in debug mode: