find-cypress-specs 1.2.1 → 1.3.0

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.
Files changed (2) hide show
  1. package/bin/find.js +9 -0
  2. package/package.json +1 -1
package/bin/find.js CHANGED
@@ -19,18 +19,27 @@ if (args['--names']) {
19
19
  console.log('no specs found')
20
20
  } else {
21
21
  console.log('')
22
+ let testsN = 0
22
23
  specs.forEach((filename) => {
23
24
  const source = fs.readFileSync(filename, 'utf8')
24
25
  const result = getTestNames(source, true)
25
26
  // enable if need to debug the parsed test
26
27
  // console.dir(result.structure, { depth: null })
27
28
 
29
+ testsN += result.testNames.length
28
30
  const testCount = pluralize('test', result.testNames.length, true)
29
31
 
30
32
  console.log('%s (%s)', filename, testCount)
31
33
  console.log(formatTestList(result.structure))
32
34
  console.log('')
33
35
  })
36
+
37
+ console.log(
38
+ 'found %s and %s',
39
+ pluralize('spec', specs.length, true),
40
+ pluralize('test', testsN, true),
41
+ )
42
+ console.log('')
34
43
  }
35
44
  } else {
36
45
  console.log(specs.join(','))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [