Skip to content

Commit f5689b8

Browse files
authored
Merge pull request #169 from browserstack/readme
Updated readme for new way of running tests from wiki
2 parents 039564b + 90ed755 commit f5689b8

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

README.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -306,26 +306,16 @@ These can also be provided by a build server, for example [using secure environm
306306
Check out code sample [here].
307307
[here]:https://github.com/browserstack/browserstack-runner-sample
308308

309-
### Tests
309+
### Running Tests
310310

311-
Testing involves pulling sample repos with test cases and running tests against them.
312-
```
313-
git submodule update --init --recursive
314-
npm test
315-
```
311+
BrowserStack Runner is currently tested by running test cases defined in [QUnit](https://github.com/jquery/qunit), [Mocha](https://github.com/mochajs/mocha), and [Spine](https://github.com/spine/spine) repositories.
316312

317-
Sample `browserstack.json`:
318-
```
319-
{
320-
"username": "BROWSERSTACK_USERNAME",
321-
"key": "BROWSERSTACK_KEY",
322-
"test_path": "tests/external-repos/<sample-repo-name-here>/test/test.html",
323-
"debug": true,
324-
"browsers": [
325-
"chrome_latest",
326-
"firefox_latest",
327-
"ie_11",
328-
...
329-
]
330-
}
331-
```
313+
To run tests:
314+
315+
npm test
316+
317+
To run a larger suite of tests ensuring compatibility with older versions of QUnit, etc.:
318+
319+
npm run test-ci
320+
321+
Tests are also run for every pull request, courtesy [Travis CI](https://travis-ci.org/).

0 commit comments

Comments
 (0)