@@ -28,6 +28,8 @@ Error.stackTraceLimit = Infinity;
28
28
* --nolink Skip linking your local @angular/cli directory. Can save a few seconds.
29
29
* --ng-sha=SHA Use a specific ng-sha. Similar to nightly but point to a master SHA instead
30
30
* of using the latest.
31
+ * --glob Run tests matching this glob pattern (relative to tests/e2e/).
32
+ * --ignore Ignore tests matching this glob pattern.
31
33
* --nightly Install angular nightly builds over the test project.
32
34
* --reuse=/path Use a path instead of create a new project. That project should have been
33
35
* created, and npm installed. Ideally you want a project created by a previous
@@ -36,7 +38,7 @@ Error.stackTraceLimit = Infinity;
36
38
*/
37
39
const argv = minimist ( process . argv . slice ( 2 ) , {
38
40
'boolean' : [ 'debug' , 'nolink' , 'nightly' , 'noproject' , 'verbose' ] ,
39
- 'string' : [ 'reuse' , 'ng-sha' ]
41
+ 'string' : [ 'glob' , 'ignore' , ' reuse', 'ng-sha' , ]
40
42
} ) ;
41
43
42
44
@@ -67,15 +69,15 @@ ConsoleLoggerStack.start(new IndentLogger('name'))
67
69
output . write ( color ( entry . message ) + '\n' ) ;
68
70
} ) ;
69
71
70
-
72
+ const testGlob = argv . glob || 'tests/**/*.ts' ;
71
73
let currentFileName = null ;
72
74
let index = 0 ;
73
75
74
76
const e2eRoot = path . join ( __dirname , 'e2e' ) ;
75
77
const allSetups = glob . sync ( path . join ( e2eRoot , 'setup/**/*.ts' ) , { nodir : true } )
76
78
. map ( name => path . relative ( e2eRoot , name ) )
77
79
. sort ( ) ;
78
- const allTests = glob . sync ( path . join ( e2eRoot , 'tests/**/*.ts' ) , { nodir : true } )
80
+ const allTests = glob . sync ( path . join ( e2eRoot , testGlob ) , { nodir : true , ignore : argv . ignore } )
79
81
. map ( name => path . relative ( e2eRoot , name ) )
80
82
. sort ( ) ;
81
83
0 commit comments