Skip to content

Commit

Permalink
do not retry e2e tests while running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-8 committed Dec 6, 2024
1 parent a18f11e commit 5e98cad
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -159,21 +164,25 @@ 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

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:
Expand Down

0 comments on commit 5e98cad

Please sign in to comment.