Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 7030e08

Browse files
Merge pull request #6 from DevExpress/new-options
Add missing options (closes #5)
2 parents d7f0127 + 325f942 commit 7030e08

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

index.js

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ var DEFAULT_OPTS = {
1212
filter: null,
1313
screenshotsPath: null,
1414
takeScreenshotsOnFail: false,
15-
reporter: [],
15+
reporter: [],
1616
skipJsErrors: false,
1717
quarantineMode: false,
18-
selectorTimeout: 10000
18+
assertionTimeout: 3000,
19+
pageLoadTimeout: 3000,
20+
selectorTimeout: 10000,
21+
proxy: '',
22+
hostname: '',
23+
ports: [],
24+
speed: 1,
25+
concurrency: 0,
26+
app: '',
27+
appInitDelay: 1000,
28+
debugMode: false,
29+
debugOnFail: false
1930
};
2031

2132
module.exports = function gulpTestCafe (opts) {
@@ -42,7 +53,7 @@ module.exports = function gulpTestCafe (opts) {
4253
var stream = this;
4354
var testcafe = null;
4455

45-
createTestCafe()
56+
createTestCafe(opts.hostname, opts.ports[0], opts.ports[1])
4657
.then(function (tc) {
4758
testcafe = tc;
4859

@@ -59,12 +70,21 @@ module.exports = function gulpTestCafe (opts) {
5970
runner.reporter(reporter);
6071
else {
6172
runner.reporter(
62-
reporter.name || DEFAULT_REPORTER,
73+
reporter.name || DEFAULT_REPORTER,
6374
reporter.file ? fs.createWriteStream(reporter.file) : reporter.outStream
6475
);
6576
}
6677
});
6778

79+
if (opts.concurrency)
80+
runner.concurrency(opts.concurrency);
81+
82+
if (opts.app)
83+
runner.startApp(opts.app, opts.appInitDelay);
84+
85+
if (opts.proxy)
86+
runner.useProxy(opts.proxy);
87+
6888
return runner.run(opts);
6989

7090
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-testcafe",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Run TestCafe tests using Gulp.",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)