find-cypress-specs 1.30.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/find.js +9 -9
- package/package.json +1 -1
- package/src/index.js +1 -1
package/bin/find.js
CHANGED
|
@@ -60,15 +60,8 @@ debug('arguments %o', args)
|
|
|
60
60
|
const specType = args['--component'] ? 'component' : 'e2e'
|
|
61
61
|
|
|
62
62
|
const specs = getSpecs(undefined, specType)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
tags: args['--tags'],
|
|
66
|
-
tagged: args['--tagged'],
|
|
67
|
-
skipped: args['--skipped'],
|
|
68
|
-
})
|
|
69
|
-
const str = stringAllInfo(jsonResults, true)
|
|
70
|
-
console.log(str)
|
|
71
|
-
} else if (args['--names'] || args['--tags']) {
|
|
63
|
+
|
|
64
|
+
if (args['--names'] || args['--tags'] || args['--tagged']) {
|
|
72
65
|
// counts the number of tests for each tag across all specs
|
|
73
66
|
const { jsonResults, tagTestCounts } = getTests(specs, {
|
|
74
67
|
tags: args['--tags'],
|
|
@@ -110,6 +103,12 @@ if (args['--tagged']) {
|
|
|
110
103
|
console.log(table)
|
|
111
104
|
}
|
|
112
105
|
}
|
|
106
|
+
|
|
107
|
+
if (!args['--names'] && !args['--tags']) {
|
|
108
|
+
debug('printing the spec names list only')
|
|
109
|
+
const specNames = Object.keys(jsonResults).join(',')
|
|
110
|
+
console.log(specNames)
|
|
111
|
+
}
|
|
113
112
|
} else if (args['--branch']) {
|
|
114
113
|
debug('determining specs changed against branch %s', args['--branch'])
|
|
115
114
|
let changedFiles = findChangedFiles(args['--branch'], args['--parent'])
|
|
@@ -207,5 +206,6 @@ if (args['--tagged']) {
|
|
|
207
206
|
console.log(changedSpecs.join(','))
|
|
208
207
|
}
|
|
209
208
|
} else {
|
|
209
|
+
debug('printing just %d spec names', specs.length)
|
|
210
210
|
console.log(specs.join(','))
|
|
211
211
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -398,7 +398,7 @@ function getTests(specs, options = {}) {
|
|
|
398
398
|
.split(',')
|
|
399
399
|
.map((s) => s.trim())
|
|
400
400
|
.filter(Boolean)
|
|
401
|
-
debug('filtering all tests by tag
|
|
401
|
+
debug('filtering all tests by tag %o', splitTags)
|
|
402
402
|
pickTaggedTestsFrom(jsonResults, splitTags)
|
|
403
403
|
// recompute the number of tests
|
|
404
404
|
addCounts(jsonResults)
|