Skip to content

Commit 90ed755

Browse files
authored
Updated readme for new way of running tests from wiki
1 parent f780784 commit 90ed755

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
@@ -171,26 +171,16 @@ These can also be provided by a build server, for example [using secure environm
171171
Check out code sample [here].
172172
[here]:https://github.com/browserstack/browserstack-runner-sample
173173

174-
### Tests
174+
### Running Tests
175175

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-
```
176+
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.
181177

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-
```
178+
To run tests:
179+
180+
npm test
181+
182+
To run a larger suite of tests ensuring compatibility with older versions of QUnit, etc.:
183+
184+
npm run test-ci
185+
186+
Tests are also run for every pull request, courtesy [Travis CI](https://travis-ci.org/).

0 commit comments

Comments
 (0)