Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Minor e2e readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x authored Mar 15, 2019
1 parent 0c46193 commit 3a603a3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ If `E2E_BROWSER_HOST` is set and is not an `http(s)://` url, it is assumed to be

#### Run specific test suite(s)

Use the environment variable `TEST_E2E_GREP` to target specific test suites and/or web browsers / environments. This uses Mocha's `--grep` feature which supports regex.
Use the environment variable `TEST_E2E_GREP` to target specific test suites and/or web browsers / environments. This uses [Mocha's `--grep` feature](https://mochajs.org/#-grep-regexp-g-regexp) which supports regex. Test suite all have the naming structure `{description} {web browser / environment}`.

Examples:
* Run all the tests suite on the iOS platforms:
* Run all test suites locally on only the Chrome browser:
* `TEST_E2E_GREP=chrome npm run test-e2e:localBuild`
* Run the login test suite locally on only the Chrome browser:
* `TEST_E2E_GREP=login-to-hello-blockstack-app.*chrome npm run test-e2e:localBuild`
* Run all test suites against the remote BrowserStack iOS platforms:
* `TEST_E2E_GREP=iOS npm run test-e2e:browserstack`
* Run the login test suite on iOS platforms:
* Run the login test suite against the remote BrowserStack iOS platforms:
* `TEST_E2E_GREP=login-to-hello-blockstack-app.*iOS npm run test-e2e:browserstack`


Expand Down Expand Up @@ -60,4 +64,4 @@ createTestSuites('account recovery via secret key', ({ driver, browserHostUrl })
});

});
```
```

0 comments on commit 3a603a3

Please sign in to comment.