@@ -46,14 +46,14 @@ var Runner = function(config) {
46
46
/**
47
47
* Execute the Runner's test cases through Jasmine.
48
48
*
49
- * @private
49
+ * @private
50
50
* @param {Array } specs Array of Directory Path Strings
51
51
* @param done A callback for when tests are finished.
52
52
*/
53
53
Runner . prototype . runJasmine_ = function ( specs , done ) {
54
54
var minijn = require ( 'minijasminenode' ) ,
55
55
self = this ;
56
-
56
+
57
57
require ( '../jasminewd' ) ;
58
58
webdriver . promise . controlFlow ( ) . execute ( function ( ) {
59
59
self . runTestPreparers_ ( ) ;
@@ -76,7 +76,7 @@ Runner.prototype.runJasmine_ = function(specs, done) {
76
76
/**
77
77
* Execute the Runner's test cases through Mocha.
78
78
*
79
- * @private
79
+ * @private
80
80
* @param {Array } specs Array of Directory Path Strings
81
81
* @param done A callback for when tests are finished.
82
82
*/
@@ -127,7 +127,7 @@ Runner.prototype.runMocha_ = function(specs, done) {
127
127
/**
128
128
* Execute the Runner's test cases through Cucumber.
129
129
*
130
- * @private
130
+ * @private
131
131
* @param {Array } specs Array of Directory Path Strings
132
132
* @param done A callback for when tests are finished.
133
133
*/
@@ -190,7 +190,7 @@ Runner.prototype.runCucumber_ = function(specs, done) {
190
190
191
191
/**
192
192
* Internal helper for abstraction of polymorphic filenameOrFn properties.
193
- * @private
193
+ * @private
194
194
* @param {Array } source The Array that we'll be iterating through
195
195
* as we evaluate whether to require or execute each item.
196
196
*/
@@ -214,7 +214,7 @@ Runner.prototype.runFilenamesOrFns_ = function(source) {
214
214
215
215
/**
216
216
* Registrar for testPreparers - executed right before tests run.
217
- * @public
217
+ * @public
218
218
* @param {string/Fn } filenameOrFn
219
219
*/
220
220
Runner . prototype . registerTestPreparer = function ( filenameOrFn ) {
@@ -224,7 +224,7 @@ Runner.prototype.registerTestPreparer = function(filenameOrFn) {
224
224
225
225
/**
226
226
* Executor of testPreparers
227
- * @private
227
+ * @private
228
228
*/
229
229
Runner . prototype . runTestPreparers_ = function ( ) {
230
230
this . runFilenamesOrFns_ ( this . preparers_ ) ;
@@ -240,7 +240,7 @@ Runner.prototype.runTestPreparers_ = function() {
240
240
* 2) if seleniumAddress is given, use that
241
241
* 3) if a sauceAccount is given, use that.
242
242
* 4) if a seleniumServerJar is specified, use that
243
- * 5) try to find the seleniumServerJar in protractor/selenium
243
+ * 5) try to find the seleniumServerJar in protractor/selenium
244
244
*/
245
245
Runner . prototype . loadDriverProvider_ = function ( ) {
246
246
var runnerPath ;
@@ -284,7 +284,7 @@ Runner.prototype.getConfig = function() {
284
284
285
285
/**
286
286
* Sets up convenience globals for test specs
287
- * @private
287
+ * @private
288
288
*/
289
289
Runner . prototype . setupGlobals_ = function ( driver ) {
290
290
var browser = protractor . wrapDriver (
@@ -320,8 +320,9 @@ Runner.prototype.run = function() {
320
320
// Determine included and excluded specs based on file pattern.
321
321
excludes = ConfigParser . resolveFilePatterns (
322
322
this . config_ . exclude , true , this . config_ . configDir ) ;
323
+
323
324
specs = ConfigParser . resolveFilePatterns (
324
- this . config_ . specs , false , this . config_ . configDir ) . filter ( function ( path ) {
325
+ ConfigParser . getSpecs ( this . config_ ) , false , this . config_ . configDir ) . filter ( function ( path ) {
325
326
return excludes . indexOf ( path ) < 0 ;
326
327
} ) ;
327
328
@@ -365,7 +366,7 @@ Runner.prototype.run = function() {
365
366
throw new Error ( 'config.framework (' + self . config_ . framework +
366
367
') is not a valid framework.' ) ;
367
368
}
368
-
369
+
369
370
return deferred . promise ;
370
371
371
372
// 3) Teardown
0 commit comments