Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
27 lines (27 loc) · 3.63 KB
/
Copy pathpackage.json
File metadata and controls
27 lines (27 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"name": "browserstack-runner",
"description": "A command line interface to run browser tests over BrowserStack",
"version": "0.0.12",
"homepage": "https://github.com/browserstack/browserstack-runner",
"repository": {
"type": "git",
"url": "git://github.com/browserstack/browserstack-runner.git"
},
"dependencies": {
"browserstack": "git://github.com/browserstack/node-browserstack.git"
},
"bin": {
"browserstack-runner": "bin/cli.js"
},
"readme": "A command line interface to run browser tests over BrowserStack.\n\n## Install\nGo to the `browserstack-runner` directory. \nInstall browserstack-runner\n\n npm -g install\n\nor\n\n\nFor development,\n\n npm link\n\n## Configuration\nTo run browser tests on BrowserStack infrastructure, you need to\ncreate a `browserstack.json` file in project's root directory (the\ndirectory from which tests are run), by running this command:\n\n browserstack-runner init [preset]\n\nIf nothing is provided as `preset` **default** is used.\n\n> Currently only one preset is present: **default**\n\n### Parameters\n\n - *username*: BrowserStack username\n (Alternatively: use `BROWSERSTACK_UESRNAME` environment variable)\n\n - *key*: BrowserStack key\n (Alternatively: use `BROWSERSTACK_KEY` environment variable)\n\n - *test_path*: Path to the which will execute the tests when opened\n in a browser.\n\n - *browsers*: A list of browsers on which tests are to be run.\n\nA sample configuration file:\n\n {\n \"username\": \"<username>\",\n \"key\": \"<key>\",\n \"test_path\": \"relative/path/to/test/page\",\n \"browsers\": [{\n \"browser\": \"firefox\",\n \"browser_version\": \"15.0\",\n \"device\": null,\n \"os\": \"OS X\",\n \"os_version\": \"Snow Leopard\"\n },\n {\n \"browser\": \"firefox\",\n \"browser_version\": \"16.0\",\n \"device\": null,\n \"os\": \"Windows\",\n \"os_version\": \"7\"\n },\n {\n \"browser\": \"firefox\",\n \"browser_version\": \"17.0\",\n \"device\": null,\n \"os\": \"Windows\",\n \"os_version\": \"8\"\n },\n {\n \"browser\": \"ie\",\n \"browser_version\": \"8.0\",\n \"device\": null,\n \"os\": \"Windows\",\n \"os_version\": \"7\"\n },\n {\n \"browser\": \"ie\",\n \"browser_version\": \"9.0\",\n \"device\": null,\n \"os\": \"Windows\",\n \"os_version\": \"7\"\n },\n {\n \"browser\": \"ie\",\n \"browser_version\": \"10.0\",\n \"device\": null,\n \"os\": \"Windows\",\n \"os_version\": \"8\"\n }]\n }\n\n\n### Secure Information\n\nTo prevent checking in the BrowserStack `username` and `key` in your\nsource control, the corresponding environment variables can be used.\n\nThe environment variables then can be safely provided in the build\nconfiguration. For example, with travis-ci you can follow:\n\nhttp://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables\n\n## Running tests\nRun `browserstack-runner` to run the tests on all the browsers mentioned\nin the configuration.\n\nYou can include this in your test script to automatically run cross\nbrowser tests on every build.\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/browserstack/browserstack-runner/issues"
},
"_id": "browserstack-runner@0.0.12",
"dist": {
"shasum": "2777496f93ad8280737378e177d8334c6f301bae"
},
"_from": "browserstack-runner@~0.0.11",
"_resolved": "https://registry.npmjs.org/browserstack-runner/-/browserstack-runner-0.0.12.tgz"
}