Code samples to get started with Cucumber tests on BrowserStack Automate using the BrowserStack Ruby SDK.
- Ruby: If you don't have Ruby installed, follow the instructions given here
- Bundler: If you don't have Bundler installed, follow the instructions given here
bundle installAll BrowserStack configuration is managed through a single browserstack.yml file at the root of the repository.
Set parallels.
browserStackLocal: false # set to true for local testing.
## Running your tests
All tests are run from the repo root. The same command is used for all run types — behaviour is controlled entirely by `browserstack.yml`:
```sh
bundle exec browserstack-sdk exec cucumber features/sample.feature
Tip: Instead of hardcoding credentials, set
BROWSERSTACK_USERNAMEandBROWSERSTACK_ACCESS_KEYas environment variables.
