Skip to content

Commit f780784

Browse files
authored
Merge pull request #166 from browserstack/test_readme
Add testing steps in README
2 parents 96ecb53 + 0542ff3 commit f780784

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,27 @@ These can also be provided by a build server, for example [using secure environm
170170

171171
Check out code sample [here].
172172
[here]:https://github.com/browserstack/browserstack-runner-sample
173+
174+
### Tests
175+
176+
Testing involves pulling sample repos with test cases and running tests against them.
177+
```
178+
git submodule update --init --recursive
179+
npm test
180+
```
181+
182+
Sample `browserstack.json`:
183+
```
184+
{
185+
"username": "BROWSERSTACK_USERNAME",
186+
"key": "BROWSERSTACK_KEY",
187+
"test_path": "tests/external-repos/<sample-repo-name-here>/test/test.html",
188+
"debug": true,
189+
"browsers": [
190+
"chrome_latest",
191+
"firefox_latest",
192+
"ie_11",
193+
...
194+
]
195+
}
196+
```

0 commit comments

Comments
 (0)