sxy-test-runner 1.4.2 → 1.4.4

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 (157) hide show
  1. package/dist/cli/index.d.ts +3 -0
  2. package/dist/cli/index.d.ts.map +1 -0
  3. package/dist/cli/index.js +0 -2
  4. package/dist/cli/index.js.map +1 -0
  5. package/dist/cli/init.d.ts +2 -0
  6. package/dist/cli/init.d.ts.map +1 -0
  7. package/dist/cli/init.js.map +1 -0
  8. package/dist/cli/lib/addBasePath.d.ts +3 -0
  9. package/dist/cli/lib/addBasePath.d.ts.map +1 -0
  10. package/dist/cli/lib/addBasePath.js.map +1 -0
  11. package/dist/cli/lib/addExports.d.ts +3 -0
  12. package/dist/cli/lib/addExports.d.ts.map +1 -0
  13. package/dist/cli/lib/addExports.js.map +1 -0
  14. package/dist/cli/lib/applyConfigDefaults.d.ts +3 -0
  15. package/dist/cli/lib/applyConfigDefaults.d.ts.map +1 -0
  16. package/dist/cli/lib/applyConfigDefaults.js +1 -1
  17. package/dist/cli/lib/applyConfigDefaults.js.map +1 -0
  18. package/dist/cli/lib/buildDependencyTree.d.ts +3 -0
  19. package/dist/cli/lib/buildDependencyTree.d.ts.map +1 -0
  20. package/dist/cli/lib/buildDependencyTree.js +0 -1
  21. package/dist/cli/lib/buildDependencyTree.js.map +1 -0
  22. package/dist/cli/lib/buildDependencyTrees.d.ts +3 -0
  23. package/dist/cli/lib/buildDependencyTrees.d.ts.map +1 -0
  24. package/dist/cli/lib/buildDependencyTrees.js.map +1 -0
  25. package/dist/cli/lib/defaultConfig.d.ts +3 -0
  26. package/dist/cli/lib/defaultConfig.d.ts.map +1 -0
  27. package/dist/cli/lib/defaultConfig.js.map +1 -0
  28. package/dist/cli/lib/doUserSetup.d.ts +3 -0
  29. package/dist/cli/lib/doUserSetup.d.ts.map +1 -0
  30. package/dist/cli/lib/doUserSetup.js.map +1 -0
  31. package/dist/cli/lib/doUserTeardown.d.ts +3 -0
  32. package/dist/cli/lib/doUserTeardown.d.ts.map +1 -0
  33. package/dist/cli/lib/doUserTeardown.js.map +1 -0
  34. package/dist/cli/lib/findTestFiles.d.ts +3 -0
  35. package/dist/cli/lib/findTestFiles.d.ts.map +1 -0
  36. package/dist/cli/lib/findTestFiles.js.map +1 -0
  37. package/dist/cli/lib/getAllowedFlags.d.ts +3 -0
  38. package/dist/cli/lib/getAllowedFlags.d.ts.map +1 -0
  39. package/dist/cli/lib/getAllowedFlags.js.map +1 -0
  40. package/dist/cli/lib/globArgCombine.d.ts +3 -0
  41. package/dist/cli/lib/globArgCombine.d.ts.map +1 -0
  42. package/dist/cli/lib/globArgCombine.js.map +1 -0
  43. package/dist/cli/lib/injectProperties.d.ts +3 -0
  44. package/dist/cli/lib/injectProperties.d.ts.map +1 -0
  45. package/dist/cli/lib/injectProperties.js.map +1 -0
  46. package/dist/cli/lib/loadConfig.d.ts +3 -0
  47. package/dist/cli/lib/loadConfig.d.ts.map +1 -0
  48. package/dist/cli/lib/loadConfig.js.map +1 -0
  49. package/dist/cli/lib/loadTestFile.d.ts +4 -0
  50. package/dist/cli/lib/loadTestFile.d.ts.map +1 -0
  51. package/dist/cli/lib/loadTestFile.js.map +1 -0
  52. package/dist/cli/lib/loadTestFile.unitTest.js +30 -30
  53. package/dist/cli/lib/loadTestFileStatic.js +39 -39
  54. package/dist/cli/lib/loadTestFileStatic.unitTest.js +28 -28
  55. package/dist/cli/lib/parseCommandLineArguments.d.ts +3 -0
  56. package/dist/cli/lib/parseCommandLineArguments.d.ts.map +1 -0
  57. package/dist/cli/lib/parseCommandLineArguments.js.map +1 -0
  58. package/dist/cli/lib/parseDescribe.d.ts +3 -0
  59. package/dist/cli/lib/parseDescribe.d.ts.map +1 -0
  60. package/dist/cli/lib/parseDescribe.js +8 -2
  61. package/dist/cli/lib/parseDescribe.js.map +1 -0
  62. package/dist/cli/lib/runDescribe.d.ts +3 -0
  63. package/dist/cli/lib/runDescribe.d.ts.map +1 -0
  64. package/dist/cli/lib/runDescribe.js +20 -2
  65. package/dist/cli/lib/runDescribe.js.map +1 -0
  66. package/dist/cli/lib/runDescribe.old.unitTest.js +439 -439
  67. package/dist/cli/lib/runDescribeRun.d.ts +3 -0
  68. package/dist/cli/lib/runDescribeRun.d.ts.map +1 -0
  69. package/dist/cli/lib/runDescribeRun.js.map +1 -0
  70. package/dist/cli/lib/runIt.d.ts +3 -0
  71. package/dist/cli/lib/runIt.d.ts.map +1 -0
  72. package/dist/cli/lib/runIt.js.map +1 -0
  73. package/dist/cli/lib/runTasks.d.ts +3 -0
  74. package/dist/cli/lib/runTasks.d.ts.map +1 -0
  75. package/dist/cli/lib/runTasks.js.map +1 -0
  76. package/dist/cli/lib/runTest-old.js +158 -158
  77. package/dist/cli/lib/runTest-old.unitTest.js +182 -182
  78. package/dist/cli/lib/runTest.d.ts +3 -0
  79. package/dist/cli/lib/runTest.d.ts.map +1 -0
  80. package/dist/cli/lib/runTest.js.map +1 -0
  81. package/dist/cli/lib/runTests.d.ts +3 -0
  82. package/dist/cli/lib/runTests.d.ts.map +1 -0
  83. package/dist/cli/lib/runTests.js +9 -6
  84. package/dist/cli/lib/runTests.js.map +1 -0
  85. package/dist/cli/lib/showTestLoadingError.d.ts +3 -0
  86. package/dist/cli/lib/showTestLoadingError.d.ts.map +1 -0
  87. package/dist/cli/lib/showTestLoadingError.js +1 -1
  88. package/dist/cli/lib/showTestLoadingError.js.map +1 -0
  89. package/dist/cli/lib/showTestResult.d.ts +3 -0
  90. package/dist/cli/lib/showTestResult.d.ts.map +1 -0
  91. package/dist/cli/lib/showTestResult.js +13 -1
  92. package/dist/cli/lib/showTestResult.js.map +1 -0
  93. package/dist/cli/lib/timeProfier.d.ts +3 -0
  94. package/dist/cli/lib/timeProfier.d.ts.map +1 -0
  95. package/dist/cli/lib/timeProfier.js.map +1 -0
  96. package/dist/cli/lib/validateConfig.d.ts +3 -0
  97. package/dist/cli/lib/validateConfig.d.ts.map +1 -0
  98. package/dist/cli/lib/validateConfig.js.map +1 -0
  99. package/dist/cli/lib/watchFilesAndRunTests.d.ts +2 -0
  100. package/dist/cli/lib/watchFilesAndRunTests.d.ts.map +1 -0
  101. package/dist/cli/lib/watchFilesAndRunTests.js.map +1 -0
  102. package/dist/cli/lib/watchFilesAndRunTests.unitTest.js +1 -1
  103. package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts +3 -0
  104. package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts.map +1 -0
  105. package/dist/cli/lib/watchFilesAndRunTestsChokidar.js.map +1 -0
  106. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js +1 -1
  107. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts +3 -0
  108. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts.map +1 -0
  109. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js.map +1 -0
  110. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js +1 -1
  111. package/dist/cli/lib/watchFilesChokidar.d.ts +4 -0
  112. package/dist/cli/lib/watchFilesChokidar.d.ts.map +1 -0
  113. package/dist/cli/lib/watchFilesChokidar.js.map +1 -0
  114. package/dist/cli/lib/watchFilesNodeWatch.d.ts +7 -0
  115. package/dist/cli/lib/watchFilesNodeWatch.d.ts.map +1 -0
  116. package/dist/cli/lib/watchFilesNodeWatch.js.map +1 -0
  117. package/dist/cli/once.d.ts +2 -0
  118. package/dist/cli/once.d.ts.map +1 -0
  119. package/dist/cli/once.js.map +1 -0
  120. package/dist/cli/once.unitTest.js +38 -38
  121. package/dist/cli/watch.d.ts +2 -0
  122. package/dist/cli/watch.d.ts.map +1 -0
  123. package/dist/cli/watch.js.map +1 -0
  124. package/dist/config.d.ts +7 -0
  125. package/dist/config.d.ts.map +1 -0
  126. package/dist/config.js.map +1 -0
  127. package/dist/describe-old.js +183 -183
  128. package/dist/describe.d.ts +3 -0
  129. package/dist/describe.d.ts.map +1 -0
  130. package/dist/describe.js.map +1 -0
  131. package/dist/index.d.ts +2 -7
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/indexNumberToLetters.d.ts +2 -0
  135. package/dist/indexNumberToLetters.d.ts.map +1 -0
  136. package/dist/indexNumberToLetters.js.map +1 -0
  137. package/dist/lib/arrayRemove.d.ts +2 -0
  138. package/dist/lib/arrayRemove.d.ts.map +1 -0
  139. package/dist/lib/arrayRemove.js +15 -0
  140. package/dist/lib/arrayRemove.js.map +1 -0
  141. package/dist/lib/promiseAllObj.d.ts +2 -0
  142. package/dist/lib/promiseAllObj.d.ts.map +1 -0
  143. package/dist/lib/promiseAllObj.js +14 -0
  144. package/dist/lib/promiseAllObj.js.map +1 -0
  145. package/dist/output.d.ts +6 -0
  146. package/dist/output.d.ts.map +1 -0
  147. package/dist/output.js.map +1 -0
  148. package/dist/types.d.ts +138 -0
  149. package/dist/types.d.ts.map +1 -0
  150. package/dist/types.js +6 -0
  151. package/dist/types.js.map +1 -0
  152. package/package.json +6 -5
  153. package/dist/cli/lib/esmReload.unitTest.js +0 -8
  154. package/dist/cli/lib/load.js +0 -3
  155. package/dist/cli/lib/load.unitTest copy.js +0 -7
  156. package/dist/cli/lib/load.unitTest.js +0 -7
  157. package/dist/load.js +0 -3
@@ -0,0 +1,3 @@
1
+ import type { Config, Describe, DescribeResult, ParsedDescribe } from '../../types.js';
2
+ export declare function runDescribeRun(config: Config, describe: Describe, parsedIts: ParsedDescribe): Promise<DescribeResult>;
3
+ //# sourceMappingURL=runDescribeRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runDescribeRun.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/runDescribeRun.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACR,MAAM,EAAE,QAAQ,EAAE,cAAc,EAA8B,cAAc,EAC/E,MAAM,gBAAgB,CAAA;AAEvB,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAA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GAAmB;YACnC,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,OAAO,EAAE,CAAC,gBAAgB,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YACjG,SAAS;YACT,gBAAgB;SACnB,CAAA;QAED,YAAY;QACZ,IAAI,OAAO,iBAAiB,KAAK,UAAU;YAAE,iBAAiB,EAAE,CAAA;QAChE,uBAAuB,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;QAEtD,OAAO,cAAc,CAAA;IACzB,CAAC,CAAC,CAAA;AACN,CAAC;AAED,SAAS,uBAAuB,CAAC,MAAc,EAAE,OAAoB;IACjE,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;QACzC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Config, It, ItResult, TaskExports } from '../../types.js';
2
+ export declare function runIt(config: Config, it: It, beforeEachTestFunc: (() => TaskExports | void) | undefined, afterEachTestFunc: (() => void) | undefined): Promise<ItResult>;
3
+ //# sourceMappingURL=runIt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runIt.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/runIt.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAa,MAAM,gBAAgB,CAAA;AAElF,wBAAgB,KAAK,CACjB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,EACN,kBAAkB,EAAE,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,EAC1D,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,GAC5C,OAAO,C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AAa,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ConfigTasks, TaskExports } from '../../types.js';
2
+ export declare function runTasks(tasks: ConfigTasks | undefined, parcel?: TaskExports | undefined): TaskExports | null;
3
+ //# sourceMappingURL=runTasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runTasks.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/runTasks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI9D,wBAAgB,QAAQ,CACpB,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,GAAE,WAAW,GAAG,SAAqB,GAC5E,WAAW,GAAG,IAAI,CAyBpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runTasks.js","sourceRoot":"","sources":["../../../src/cli/lib/runTasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAGrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,UAAU,QAAQ,CACpB,KAA8B,EAAE,SAAkC,SAAS;IAE3E,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IAEpC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IACvD,MAAM,OAAO,GAAgB,EAAE,CAAA;IAE/B,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC1B,QAAQ,OAAO,IAAI,EAAE,CAAC;YAClB,KAAK,UAAU,CAAC,CAAC,CAAC;gBACd,MAAM,MAAM,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;gBAC7D,IAAI,MAAM;oBAAE,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;gBACvC,MAAK;YACT,CAAC;YACD,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACZ,KAAK,MAAM,CAAC,UAAU,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;gBAClD,MAAK;YACT,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACN,GAAG,CAAC,kGAAkG,CAAC,CAAA;gBACvG,GAAG,CAAC,aAAa,OAAO,IAAI,IAAI,CAAC,CAAA;YACrC,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAA;AAClB,CAAC"}
@@ -1,160 +1,160 @@
1
1
 
2
- /*
3
- import { createTimeProfiler } from 'sxy-dev-tools'
4
- import chalk from 'chalk-extensions'
5
- import { out, log, debug } from '../../output.js'
6
- import { showTimeProfiling } from '../../config.js'
7
-
8
- import { runTasks } from './runTasks.js'
9
-
10
- const { timeProfileAsync } = createTimeProfiler(showTimeProfiling)
11
-
12
- export function runTest(config, test, customOut = undefined) {
13
-
14
- return timeProfileAsync(`run test ${test.file}`, () => {
15
-
16
- // run before test
17
- if (config.beforeEachFile) runTasks(config, config.beforeEachFile)
18
-
19
- // const beforeEachFileExports = (config.beforeEachFile)
20
- // ? runTasks(config, config.beforeEachFile)
21
- // : {}
22
-
23
- let describeCounter = 1
24
- const describeRunPromises = []
25
-
26
- for (const describe of test.describes) {
27
-
28
- describeRunPromises.push(
29
- promise( runDescribe(config, describe) )
30
- )
31
-
32
- }
33
-
34
- const describeResults = Promise.all(describeRunPromises)
35
-
36
- const describeResultsSummary = {
37
- total: 0,
38
- passes: 0,
39
- itsTotal: 0,
40
- itsPasses: 0,
41
- }
42
-
43
-
44
- for ( const describeResult of describeResults ) {
45
- describeResultsSummary.total += +(describeResult.success !== null)
46
- describeResultsSummary.passes += +describeResult.success
47
- describeResultsSummary.itsTotal += describeResult.itResultsSummary.total
48
- describeResultsSummary.itsPasses += describeResult.itResultsSummary.passes
49
- }
50
-
51
- const testResults = {
52
- file: test.file,
53
- success: (describeResultsSummary.total > 0)
54
- ? describeResultsSummary.total === describeResultsSummary.passes
55
- : null,
56
- describeResults,
57
- describeResultsSummary,
58
- }
59
-
60
- // run after test
61
- if (config.afterEachFile) runTasks(config, config.afterEachFile)
62
-
63
- return testResults
64
-
65
-
66
- function runDescribe(config, describe) {
67
-
68
- return timeProfileAsync(`run describe ${describe.thing}`, () => {
69
-
70
- // run before describe
71
- if (config.beforeEachDescribe) runTasks(config, config.beforeEachDescribe)
72
-
73
- // const beforeEachDescribeExports = (config.beforeEachDescribe)
74
- // ? runTasks(config, config.beforeEachDescribe)
75
- // : {}
76
-
77
- const thisDescribeCounter = describeCounter++ // assign THEN increment
78
- let itCounter = 1
79
- const itResults = []
80
-
81
- for ( const it of describe.its ) {
82
- itResults.push( runIt(config, it) )
83
- }
84
-
85
- const itResultsSummary = {
86
- total: 0,
87
- passes: 0,
88
- }
89
-
90
- for ( const itResult of itResults ) {
91
- itResultsSummary.total += +(itResult.success !== null)
92
- itResultsSummary.passes += +itResult.success
93
- }
94
-
95
- const describeResult = {
96
- counter: thisDescribeCounter,
97
- thing: describe.thing,
98
- success: (itResultsSummary.total > 0)
99
- ? itResultsSummary.passes === itResultsSummary.total
100
- : null,
101
- itResults,
102
- itResultsSummary
103
- }
104
-
105
- // run after describe
106
- if (config.afterEachDescribe) runTasks(config, config.afterEachDescribe)
107
-
108
- return describeResult
109
-
110
-
111
- function runIt(config, it, exports) {
112
-
113
- return timeProfileAsync(`run it ${it.should}`, () => {
114
-
115
- // run before test/it
116
- if (config.beforeEachTest) runTasks(config, config.beforeEachTest)
117
-
118
- const thisItCounter = itCounter++ // assign THEN increment
119
-
120
- //// run the it
121
- let success = null
122
- let error
123
- const startTime = (new Date).getTime()
124
- try {
125
- it.test()
126
- success = true
127
- } catch (e) {
128
- success = false
129
- error = e
130
- }
131
-
132
- const time = (new Date).getTime() - startTime
133
-
134
- const itResult = {
135
- counter: thisItCounter,
136
- should: it.should,
137
- success,
138
- time,
139
- error
140
- }
141
-
142
- // run after test/it
143
- if (config.afterEachTest) runTasks(config, config.afterEachTest)
144
-
145
- return itResult
146
- //testResults.push(testResult)
147
- //testsState.testResults.push(testResult)
148
-
149
- })
150
-
151
- }
152
-
153
- })
154
-
155
- }
156
-
157
- })
158
-
159
- }
2
+ /*
3
+ import { createTimeProfiler } from 'sxy-dev-tools'
4
+ import chalk from 'chalk-extensions'
5
+ import { out, log, debug } from '../../output.js'
6
+ import { showTimeProfiling } from '../../config.js'
7
+
8
+ import { runTasks } from './runTasks.js'
9
+
10
+ const { timeProfileAsync } = createTimeProfiler(showTimeProfiling)
11
+
12
+ export function runTest(config, test, customOut = undefined) {
13
+
14
+ return timeProfileAsync(`run test ${test.file}`, () => {
15
+
16
+ // run before test
17
+ if (config.beforeEachFile) runTasks(config, config.beforeEachFile)
18
+
19
+ // const beforeEachFileExports = (config.beforeEachFile)
20
+ // ? runTasks(config, config.beforeEachFile)
21
+ // : {}
22
+
23
+ let describeCounter = 1
24
+ const describeRunPromises = []
25
+
26
+ for (const describe of test.describes) {
27
+
28
+ describeRunPromises.push(
29
+ promise( runDescribe(config, describe) )
30
+ )
31
+
32
+ }
33
+
34
+ const describeResults = Promise.all(describeRunPromises)
35
+
36
+ const describeResultsSummary = {
37
+ total: 0,
38
+ passes: 0,
39
+ itsTotal: 0,
40
+ itsPasses: 0,
41
+ }
42
+
43
+
44
+ for ( const describeResult of describeResults ) {
45
+ describeResultsSummary.total += +(describeResult.success !== null)
46
+ describeResultsSummary.passes += +describeResult.success
47
+ describeResultsSummary.itsTotal += describeResult.itResultsSummary.total
48
+ describeResultsSummary.itsPasses += describeResult.itResultsSummary.passes
49
+ }
50
+
51
+ const testResults = {
52
+ file: test.file,
53
+ success: (describeResultsSummary.total > 0)
54
+ ? describeResultsSummary.total === describeResultsSummary.passes
55
+ : null,
56
+ describeResults,
57
+ describeResultsSummary,
58
+ }
59
+
60
+ // run after test
61
+ if (config.afterEachFile) runTasks(config, config.afterEachFile)
62
+
63
+ return testResults
64
+
65
+
66
+ function runDescribe(config, describe) {
67
+
68
+ return timeProfileAsync(`run describe ${describe.thing}`, () => {
69
+
70
+ // run before describe
71
+ if (config.beforeEachDescribe) runTasks(config, config.beforeEachDescribe)
72
+
73
+ // const beforeEachDescribeExports = (config.beforeEachDescribe)
74
+ // ? runTasks(config, config.beforeEachDescribe)
75
+ // : {}
76
+
77
+ const thisDescribeCounter = describeCounter++ // assign THEN increment
78
+ let itCounter = 1
79
+ const itResults = []
80
+
81
+ for ( const it of describe.its ) {
82
+ itResults.push( runIt(config, it) )
83
+ }
84
+
85
+ const itResultsSummary = {
86
+ total: 0,
87
+ passes: 0,
88
+ }
89
+
90
+ for ( const itResult of itResults ) {
91
+ itResultsSummary.total += +(itResult.success !== null)
92
+ itResultsSummary.passes += +itResult.success
93
+ }
94
+
95
+ const describeResult = {
96
+ counter: thisDescribeCounter,
97
+ thing: describe.thing,
98
+ success: (itResultsSummary.total > 0)
99
+ ? itResultsSummary.passes === itResultsSummary.total
100
+ : null,
101
+ itResults,
102
+ itResultsSummary
103
+ }
104
+
105
+ // run after describe
106
+ if (config.afterEachDescribe) runTasks(config, config.afterEachDescribe)
107
+
108
+ return describeResult
109
+
110
+
111
+ function runIt(config, it, exports) {
112
+
113
+ return timeProfileAsync(`run it ${it.should}`, () => {
114
+
115
+ // run before test/it
116
+ if (config.beforeEachTest) runTasks(config, config.beforeEachTest)
117
+
118
+ const thisItCounter = itCounter++ // assign THEN increment
119
+
120
+ //// run the it
121
+ let success = null
122
+ let error
123
+ const startTime = (new Date).getTime()
124
+ try {
125
+ it.test()
126
+ success = true
127
+ } catch (e) {
128
+ success = false
129
+ error = e
130
+ }
131
+
132
+ const time = (new Date).getTime() - startTime
133
+
134
+ const itResult = {
135
+ counter: thisItCounter,
136
+ should: it.should,
137
+ success,
138
+ time,
139
+ error
140
+ }
141
+
142
+ // run after test/it
143
+ if (config.afterEachTest) runTasks(config, config.afterEachTest)
144
+
145
+ return itResult
146
+ //testResults.push(testResult)
147
+ //testsState.testResults.push(testResult)
148
+
149
+ })
150
+
151
+ }
152
+
153
+ })
154
+
155
+ }
156
+
157
+ })
158
+
159
+ }
160
160
  */