Skip to content

Commit 57adc5f

Browse files
committed
Bump browser-run to support sandbox option. Closes #82
1 parent ccad1ea commit 57adc5f

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ on `http://localhost:<port>` and tests will be run there.
122122
* `ie`
123123
* `phantom`
124124
* `safari`
125-
* `keepOpen` (Boolean): Leave the browser open for debugging after running tests.
126-
* `node` (Boolean): Enable nodejs integration for electron.
127-
* `basedir` (String): Set this if you need to require node modules in `node` mode
125+
* `keepOpen (Boolean)`: Leave the browser open for debugging after running tests.
126+
* `node (Boolean)` Enable nodejs integration for electron.
127+
* `sandbox (Boolean) [Default: true]`: Enable electron sandbox.
128+
* `basedir` (String): Set this if you need to require node modules in `node` mode.
128129
129130
The **CLI** takes the same arguments, plus `--render` (see blow):
130131
@@ -134,15 +135,16 @@ Pipe a browserify stream into this.
134135
browserify [opts] [files] | tape-run [opts]
135136
136137
Options:
137-
--wait Timeout for tap-finished
138-
--port Wait to be opened by a browser on that port
139-
--static Serve static files from this directory
138+
--wait Timeout for tap-finished
139+
--port Wait to be opened by a browser on that port
140+
--static Serve static files from this directory
140141
--browser Browser to use. Always available: electron. Available if installed: chrome, firefox, ie, phantom, safari [default: "electron"]
141-
--render Command to pipe tap output to for custom rendering
142-
--keep-open Leave the browser open for debugging after running tests
143-
--node Enable nodejs integration for electron
144-
--basedir Set this if you need to require node modules in node mode
145-
--help Print usage instructions
142+
--render Command to pipe tap output to for custom rendering
143+
--keep-open Leave the browser open for debugging after running tests
144+
--node Enable nodejs integration for electron
145+
--sandbox Enable electron sandbox [default: true]
146+
--basedir Set this if you need to require node modules in node mode
147+
--help Print usage instructions
146148
```
147149
148150
...or any of the [other options you can pass to browser-run](https://github.com/juliangruber/browser-run#runopts).

bin/run.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ var argv = optimist
3434
.alias('node-integration', 'node')
3535
.alias('nodeIntegration', 'node')
3636

37+
.describe('sandbox', 'Enable electron sandbox')
38+
.boolean('sandbox')
39+
.default('sandbox', true)
40+
3741
.describe('basedir', 'Set this if you need to require node modules in node mode')
3842

3943
.describe('help', 'Print usage instructions')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@juliangruber/tap-finished": "0.0.2",
19-
"browser-run": "^8.0.0",
19+
"browser-run": "^10.1.0",
2020
"optimist": "~0.6.1",
2121
"through": "~2.3.4",
2222
"throughout": "0.0.0"

0 commit comments

Comments
 (0)