Skip to content

Commit 9e14d09

Browse files
nagpalkaran95francisf
authored andcommitted
update readme with npx command
1 parent c6d1ebe commit 9e14d09

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
---
1313
- Clone the repo
1414
- Install dependencies `npm install`
15-
- Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml)
15+
- Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml) `npx setup --username userName --key accessKey`
1616
- To run sample test, run `npm run sample-test` or `yarn run sample-test`
1717
- To run tests on private websites,
1818
- set browserstackLocal: true at [browserstack.yml](browserstack.yml)
@@ -29,14 +29,19 @@ npm i -D browserstack-node-sdk
2929
or
3030
yarn add --dev browserstack-node-sdk
3131
```
32-
2. Add a browserstack.yml/yaml file at root of your mocha project with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
33-
3. Add a new command for running tests on browserstack in scripts tag of package.json,
32+
2. Setup
3433
```
35-
"scripts": {
34+
npx setup --username userName --key accessKey
35+
```
36+
* Adds a browserstack.yml file at root of your mocha project with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
37+
* Adds a new command for running tests on browserstack in scripts tag of package.json,
38+
```
39+
"scripts": {
3640
"test": "cucumber-js [args]",
3741
"browserstack-test": "browserstack-node-sdk cucumber-js [args]"
3842
},
39-
```
43+
```
44+
4045

4146
## Notes
4247

0 commit comments

Comments
 (0)