This repository was archived by the owner on Apr 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed
Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff 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
2132module . 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 } )
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments