rooibos-roku 5.4.2 → 5.5.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/dist/lib/framework/BaseTestReporter.bs +4 -4
- package/dist/lib/framework/BaseTestSuite.bs +169 -1
- package/dist/lib/framework/ConsoleTestReporter.bs +2 -3
- package/dist/lib/framework/Rooibos.bs +5 -0
- package/dist/lib/framework/Test.bs +2 -0
- package/dist/lib/framework/TestGroup.bs +118 -0
- package/dist/lib/framework/TestResult.bs +82 -73
- package/dist/lib/framework/TestRunner.bs +112 -9
- package/dist/lib/rooibos/Annotation.js +19 -2
- package/dist/lib/rooibos/Annotation.js.map +1 -1
- package/dist/lib/rooibos/RooibosSession.js +1 -0
- package/dist/lib/rooibos/RooibosSession.js.map +1 -1
- package/dist/lib/rooibos/TestCase.js +26 -18
- package/dist/lib/rooibos/TestCase.js.map +1 -1
- package/dist/lib/rooibos/TestGroup.js +4 -0
- package/dist/lib/rooibos/TestGroup.js.map +1 -1
- package/dist/lib/rooibos/TestSuite.js +12 -0
- package/dist/lib/rooibos/TestSuite.js.map +1 -1
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,10 +5,10 @@ namespace rooibos
|
|
|
5
5
|
public config = invalid
|
|
6
6
|
public allStats = invalid
|
|
7
7
|
|
|
8
|
-
function new(
|
|
9
|
-
m.testRunner =
|
|
10
|
-
m.config =
|
|
11
|
-
m.allStats =
|
|
8
|
+
function new(runner as dynamic)
|
|
9
|
+
m.testRunner = runner
|
|
10
|
+
m.config = runner.config
|
|
11
|
+
m.allStats = runner.stats
|
|
12
12
|
end function
|
|
13
13
|
|
|
14
14
|
function reportResults(allStats as dynamic)
|
|
@@ -70,6 +70,8 @@ namespace rooibos
|
|
|
70
70
|
m.hasSoloGroups = data.hasSoloGroups
|
|
71
71
|
m.isSolo = data.isSolo
|
|
72
72
|
m.isIgnored = data.isIgnored
|
|
73
|
+
m.isAsync = data.isAsync
|
|
74
|
+
m.asyncTimeout = data.asyncTimeout
|
|
73
75
|
m.noCatch = data.noCatch
|
|
74
76
|
m.groupsData = data.testGroups
|
|
75
77
|
m.lineNumber = data.lineNumber
|
|
@@ -106,6 +108,19 @@ namespace rooibos
|
|
|
106
108
|
'++++++++++++++++++++++++++++++++++++?+++++++++++++++++++++++++
|
|
107
109
|
|
|
108
110
|
function run()
|
|
111
|
+
|
|
112
|
+
' ? ">>>>>>>>>>>>"
|
|
113
|
+
' ? " RUNNING TEST SUITE"
|
|
114
|
+
if m.isAsync = true
|
|
115
|
+
' ? " THIS GROUP IS ASYNC"
|
|
116
|
+
m.runAsync()
|
|
117
|
+
else
|
|
118
|
+
' ? " THIS GROUP IS SYNC"
|
|
119
|
+
m.runSync()
|
|
120
|
+
end if
|
|
121
|
+
end function
|
|
122
|
+
|
|
123
|
+
function runSync()
|
|
109
124
|
for each groupData in m.groupsData
|
|
110
125
|
'bs:disable-next-line
|
|
111
126
|
group = new TestGroup(m, groupData)
|
|
@@ -129,6 +144,115 @@ namespace rooibos
|
|
|
129
144
|
end if
|
|
130
145
|
|
|
131
146
|
end for
|
|
147
|
+
|
|
148
|
+
if m.isNodeTest and m.testRunner.top <> invalid
|
|
149
|
+
m.testRunner.top.addFields({ asyncRooibosTestResult: {
|
|
150
|
+
stats: m.stats
|
|
151
|
+
tests: m.tests
|
|
152
|
+
groups: m.groups
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
end if
|
|
156
|
+
end function
|
|
157
|
+
|
|
158
|
+
function runASync()
|
|
159
|
+
' ? "running groups async"
|
|
160
|
+
|
|
161
|
+
m.groups = []
|
|
162
|
+
for each groupData in m.groupsData
|
|
163
|
+
'bs:disable-next-line
|
|
164
|
+
group = new TestGroup(m, groupData)
|
|
165
|
+
m.groups.push(group)
|
|
166
|
+
end for
|
|
167
|
+
|
|
168
|
+
m.currentGroupIndex = -1
|
|
169
|
+
m.runNextAsync()
|
|
170
|
+
|
|
171
|
+
end function
|
|
172
|
+
|
|
173
|
+
private function runNextAsync()
|
|
174
|
+
' ? "Getting next async group"
|
|
175
|
+
m.currentGroupIndex++
|
|
176
|
+
m.currentGroup = m.groups[m.currentGroupIndex]
|
|
177
|
+
if m.currentGroup = invalid
|
|
178
|
+
m.setTestTimer(0)
|
|
179
|
+
' ? " all groups are finished"
|
|
180
|
+
'finished
|
|
181
|
+
m.finishAsyncGroups()
|
|
182
|
+
else
|
|
183
|
+
group = m.currentGroup
|
|
184
|
+
m.testRunner.top.rooibosGroupFinished = false
|
|
185
|
+
|
|
186
|
+
? ""
|
|
187
|
+
? rooibos.common.fillText(">>>> Describe: " + group.name, ">", 80)
|
|
188
|
+
'bs:disable-next-line
|
|
189
|
+
? ` Location: file://${group.testSuite.filePath.trim()}:${group.lineNumber}`
|
|
190
|
+
? ""
|
|
191
|
+
|
|
192
|
+
m.testRunner.top.observeFieldScoped("rooibosGroupFinished", "rooibos_onGroupComplete")
|
|
193
|
+
|
|
194
|
+
group.run()
|
|
195
|
+
|
|
196
|
+
if group.stats.hasFailures
|
|
197
|
+
? "Group failed before any async code could be executed"
|
|
198
|
+
m.testRunner.top.unobserveFieldScoped("rooibosGroupFinished")
|
|
199
|
+
' m.testGroupDone()
|
|
200
|
+
m.onAsyncGroupComplete(group)
|
|
201
|
+
end if
|
|
202
|
+
|
|
203
|
+
end if
|
|
204
|
+
end function
|
|
205
|
+
|
|
206
|
+
private function onAsyncGroupComplete(group = invalid) as void
|
|
207
|
+
' ? "++ CURRENT GROUP COMPLETED"
|
|
208
|
+
m.testRunner.top.unobserveFieldScoped("rooibosGroupFinished")
|
|
209
|
+
|
|
210
|
+
group = group = invalid ? m.currentGroup : group
|
|
211
|
+
if group = invalid
|
|
212
|
+
? "cannot find test group to mark async finished for?!"
|
|
213
|
+
return
|
|
214
|
+
end if
|
|
215
|
+
'bs:disable-next-line
|
|
216
|
+
m.stats.merge(group.stats)
|
|
217
|
+
|
|
218
|
+
if m.stats.hasFailures and m.isFailingFast
|
|
219
|
+
' ? "Terminating group due to failed test"
|
|
220
|
+
m.isTestFailedDueToEarlyExit = true
|
|
221
|
+
m.finishAsyncGroups()
|
|
222
|
+
else
|
|
223
|
+
m.runNextAsync()
|
|
224
|
+
end if
|
|
225
|
+
|
|
226
|
+
end function
|
|
227
|
+
|
|
228
|
+
private function finishAsyncGroups()
|
|
229
|
+
m.testRunner.top.unobserveFieldScoped("rooibosGroupFinished")
|
|
230
|
+
|
|
231
|
+
m.testRunner.top.addFields({ asyncRooibosTestResult: {
|
|
232
|
+
stats: m.stats
|
|
233
|
+
tests: m.tests
|
|
234
|
+
groups: m.groups
|
|
235
|
+
}
|
|
236
|
+
})
|
|
237
|
+
' ? " indicating test suite is done"
|
|
238
|
+
m.testSuiteDone()
|
|
239
|
+
end function
|
|
240
|
+
|
|
241
|
+
private function setTestTimer(duration)
|
|
242
|
+
' ? " SETTING TIMER FOR " duration
|
|
243
|
+
if m.testTimer = invalid
|
|
244
|
+
m.testTimer = createObject("roSGNode", "Timer")
|
|
245
|
+
end if
|
|
246
|
+
if duration = 0
|
|
247
|
+
m.testTimer.unobserveFieldScoped("fire")
|
|
248
|
+
m.testTimer.control = "stop"
|
|
249
|
+
else
|
|
250
|
+
m.currentTimeout = duration
|
|
251
|
+
m.testTimer.observeFieldScoped("fire", "rooibos_onTestTimer")
|
|
252
|
+
|
|
253
|
+
m.testTimer.duration = duration / 1000.0
|
|
254
|
+
m.testTimer.control = "start"
|
|
255
|
+
end if
|
|
132
256
|
end function
|
|
133
257
|
|
|
134
258
|
function runTest(test as rooibos.Test)
|
|
@@ -184,6 +308,15 @@ namespace rooibos
|
|
|
184
308
|
return false
|
|
185
309
|
end function
|
|
186
310
|
|
|
311
|
+
function failBecauseOfTimeOut() as dynamic
|
|
312
|
+
if m.currentResult.isFail
|
|
313
|
+
return false
|
|
314
|
+
end if
|
|
315
|
+
m.currentResult.fail("Async test execution exceeded " + m.currentTimeout.toStr() + "ms")
|
|
316
|
+
m.done()
|
|
317
|
+
return false
|
|
318
|
+
end function
|
|
319
|
+
|
|
187
320
|
' /**
|
|
188
321
|
' * @memberof module:BaseTestSuite
|
|
189
322
|
' * @name assertFalse
|
|
@@ -2484,6 +2617,31 @@ namespace rooibos
|
|
|
2484
2617
|
wait(delay, port)
|
|
2485
2618
|
end function
|
|
2486
2619
|
|
|
2620
|
+
function setAsync(isAsync as boolean)
|
|
2621
|
+
? "Setting current test to async " isAsync
|
|
2622
|
+
m.top.rooibosTestIsAsync = isAsync
|
|
2623
|
+
end function
|
|
2624
|
+
|
|
2625
|
+
function done()
|
|
2626
|
+
' ? "Async test is complete"
|
|
2627
|
+
if m.isDoneCalled = false
|
|
2628
|
+
m.isDoneCalled = true
|
|
2629
|
+
m.top.rooibosTestFinished = true
|
|
2630
|
+
else
|
|
2631
|
+
? "WARNING - extra done call after test is done ! Did you properly clean up your observers?"
|
|
2632
|
+
end if
|
|
2633
|
+
end function
|
|
2634
|
+
|
|
2635
|
+
function testSuiteDone()
|
|
2636
|
+
' ? "Async suite is complete"
|
|
2637
|
+
m.top.rooibosSuiteFinished = true
|
|
2638
|
+
end function
|
|
2639
|
+
|
|
2640
|
+
function testGroupDone()
|
|
2641
|
+
? "Async group is complete"
|
|
2642
|
+
m.top.rooibosGroupFinished = true
|
|
2643
|
+
end function
|
|
2644
|
+
|
|
2487
2645
|
function assertAsyncField(target, fieldName, delay = 500, maxAttempts = 10)
|
|
2488
2646
|
try
|
|
2489
2647
|
if m.currentResult.isFail
|
|
@@ -2531,4 +2689,14 @@ namespace rooibos
|
|
|
2531
2689
|
|
|
2532
2690
|
end class
|
|
2533
2691
|
|
|
2534
|
-
|
|
2692
|
+
|
|
2693
|
+
function onGroupComplete()
|
|
2694
|
+
' ? "++++++++ THE GROUP COMPLETED"
|
|
2695
|
+
m.testRunner.currentTestSuite.onAsyncGroupComplete()
|
|
2696
|
+
end function
|
|
2697
|
+
|
|
2698
|
+
function onTestTimer()
|
|
2699
|
+
' ? "++++++++ TEST TIMED OUT"
|
|
2700
|
+
m.testRunner.currentTestSuite.failBecauseOfTimeOut()
|
|
2701
|
+
end function
|
|
2702
|
+
end namespace
|
|
@@ -3,9 +3,9 @@ namespace rooibos
|
|
|
3
3
|
|
|
4
4
|
private lineWidth = 60
|
|
5
5
|
|
|
6
|
-
function new(
|
|
6
|
+
function new(runner)
|
|
7
7
|
'bs:disable-next-line
|
|
8
|
-
super(
|
|
8
|
+
super(runner)
|
|
9
9
|
if m.config.lineWidth <> invalid
|
|
10
10
|
m.lineWidth = m.config.lineWidth
|
|
11
11
|
else
|
|
@@ -16,7 +16,6 @@ namespace rooibos
|
|
|
16
16
|
override function reportResults(allStats)
|
|
17
17
|
m.allStats = allStats
|
|
18
18
|
m.startReport()
|
|
19
|
-
|
|
20
19
|
for each testSuite in m.testRunner.testSuites
|
|
21
20
|
if not m.allStats.hasFailures or ((not m.config.showOnlyFailures) or testSuite.stats.failedCount > 0 or testSuite.stats.crashedCount > 0)
|
|
22
21
|
m.printSuiteStart(testSuite)
|
|
@@ -26,6 +26,11 @@ namespace rooibos
|
|
|
26
26
|
? "scene is ready; running tests now"
|
|
27
27
|
runner = new rooibos.TestRunner(scene, m)
|
|
28
28
|
runner.Run()
|
|
29
|
+
|
|
30
|
+
if runner.config.keepAppOpen = false
|
|
31
|
+
? "keepAppOpen is false; exiting Rooibos"
|
|
32
|
+
return
|
|
33
|
+
end if
|
|
29
34
|
end if
|
|
30
35
|
|
|
31
36
|
while true
|
|
@@ -26,6 +26,8 @@ namespace rooibos
|
|
|
26
26
|
m.noCatch = data.noCatch
|
|
27
27
|
m.funcName = data.funcName
|
|
28
28
|
m.isIgnored = data.isIgnored
|
|
29
|
+
m.isAsync = data.isAsync
|
|
30
|
+
m.asyncTimeout = data.asyncTimeout
|
|
29
31
|
m.name = data.name
|
|
30
32
|
m.lineNumber = data.lineNumber
|
|
31
33
|
m.paramLineNumber = data.paramLineNumber
|
|
@@ -34,6 +34,8 @@ namespace rooibos
|
|
|
34
34
|
m.hasFailures = testSuite.hasFailures
|
|
35
35
|
m.isSolo = data.isSolo
|
|
36
36
|
m.isIgnored = data.isIgnored
|
|
37
|
+
m.isAsync = data.isAsync
|
|
38
|
+
m.asyncTimeout = data.asyncTimeout
|
|
37
39
|
m.testsData = data.testCases
|
|
38
40
|
m.isNodeTest = false
|
|
39
41
|
m.nodeName = invalid
|
|
@@ -54,7 +56,23 @@ namespace rooibos
|
|
|
54
56
|
'++ running
|
|
55
57
|
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
56
58
|
|
|
59
|
+
private currentTestIndex = 0
|
|
60
|
+
'TODO CONVERT THIS TO ASYNC
|
|
57
61
|
function run()
|
|
62
|
+
' ? ">>>>>>>>>>>>"
|
|
63
|
+
' ? " RUNNING TEST GROUP"
|
|
64
|
+
m.testRunner = m.testSuite.testRunner
|
|
65
|
+
m.testSuite.setTestTimer(0)
|
|
66
|
+
if m.testSuite.isAsync = true
|
|
67
|
+
' ? " THIS GROUP IS ASYNC"
|
|
68
|
+
m.runAsync()
|
|
69
|
+
else
|
|
70
|
+
' ? " THIS GROUP IS SYNC"
|
|
71
|
+
m.runSync()
|
|
72
|
+
end if
|
|
73
|
+
end function
|
|
74
|
+
|
|
75
|
+
function runSync()
|
|
58
76
|
isOk = m.runSuiteFunction(m.setupFunctionName, "setup")
|
|
59
77
|
|
|
60
78
|
if isOk
|
|
@@ -83,6 +101,101 @@ namespace rooibos
|
|
|
83
101
|
m.runSuiteFunction(m.tearDownFunctionName, "tearDown")
|
|
84
102
|
end function
|
|
85
103
|
|
|
104
|
+
|
|
105
|
+
function runAsync()
|
|
106
|
+
isOk = m.runSuiteFunction(m.setupFunctionName, "setup")
|
|
107
|
+
m.testTimer = createObject("roTimespan")
|
|
108
|
+
|
|
109
|
+
if isOk
|
|
110
|
+
m.testRunner.currentGroup = m
|
|
111
|
+
for each testData in m.testsData
|
|
112
|
+
test = new rooibos.Test(m, testData)
|
|
113
|
+
m.tests.push(test)
|
|
114
|
+
end for
|
|
115
|
+
m.currentTestIndex = -1
|
|
116
|
+
m.runNextAsync()
|
|
117
|
+
else
|
|
118
|
+
? "ERROR running test setup function"
|
|
119
|
+
m.runSuiteFunction(m.tearDownFunctionName, "tearDown")
|
|
120
|
+
end if
|
|
121
|
+
end function
|
|
122
|
+
|
|
123
|
+
private function runNextAsync()
|
|
124
|
+
' ? "Getting next async test"
|
|
125
|
+
m.currentTestIndex++
|
|
126
|
+
m.currentTest = m.tests[m.currentTestIndex]
|
|
127
|
+
m.testSuite.isDoneCalled = false
|
|
128
|
+
m.testTimer.mark()
|
|
129
|
+
if m.currentTest = invalid
|
|
130
|
+
' ? " all tests are finished"
|
|
131
|
+
'finished
|
|
132
|
+
m.finishAsyncTests()
|
|
133
|
+
else
|
|
134
|
+
m.testRunner.top.rooibosTestFinished = false
|
|
135
|
+
isOk = m.runSuiteFunction(m.beforeEachFunctionName, "beforeEach", m.currentTest)
|
|
136
|
+
if isOk
|
|
137
|
+
'TODO - set a timeout here
|
|
138
|
+
test = m.currentTest
|
|
139
|
+
if test.isAsync <> true
|
|
140
|
+
? "Executing test synchronously"
|
|
141
|
+
m.testSuite.runTest(test)
|
|
142
|
+
m.testRunner.top.rooibosTestFinished = true
|
|
143
|
+
m.onAsyncTestComplete()
|
|
144
|
+
else
|
|
145
|
+
m.testRunner.top.observeFieldScoped("rooibosTestFinished", "rooibos_onTestComplete")
|
|
146
|
+
if test.isAsync = true
|
|
147
|
+
m.testSuite.setTestTimer(test.asyncTimeout)
|
|
148
|
+
end if
|
|
149
|
+
m.testSuite.runTest(test)
|
|
150
|
+
|
|
151
|
+
if test.result.isFail
|
|
152
|
+
? "Test failed before any async code could be executed"
|
|
153
|
+
m.testRunner.top.unobserveFieldScoped("rooibosTestFinished")
|
|
154
|
+
m.testRunner.top.rooibosTestFinished = true
|
|
155
|
+
m.onAsyncTestComplete()
|
|
156
|
+
end if
|
|
157
|
+
end if
|
|
158
|
+
|
|
159
|
+
else
|
|
160
|
+
? "Error running test before each function"
|
|
161
|
+
m.isTestFailedDueToEarlyExit = true
|
|
162
|
+
m.finishAsyncTests()
|
|
163
|
+
end if
|
|
164
|
+
end if
|
|
165
|
+
end function
|
|
166
|
+
|
|
167
|
+
private function onAsyncTestComplete()
|
|
168
|
+
' ? "++ CURRENT TEST COMPLETED"
|
|
169
|
+
m.runSuiteFunction(m.afterEachFunctionName, "afterEach", m.currentTest)
|
|
170
|
+
|
|
171
|
+
m.testRunner.top.unobserveFieldScoped("rooibosTestFinished")
|
|
172
|
+
|
|
173
|
+
m.currentTest.result.time = m.testTimer.totalMilliseconds()
|
|
174
|
+
m.stats.appendTestResult(m.currentTest.result)
|
|
175
|
+
|
|
176
|
+
if m.stats.hasFailures and m.testSuite.isFailingFast
|
|
177
|
+
? "Terminating group due to failed test"
|
|
178
|
+
m.isTestFailedDueToEarlyExit = true
|
|
179
|
+
m.finishAsyncTests()
|
|
180
|
+
else
|
|
181
|
+
m.runNextAsync()
|
|
182
|
+
end if
|
|
183
|
+
|
|
184
|
+
end function
|
|
185
|
+
|
|
186
|
+
private function finishAsyncTests()
|
|
187
|
+
m.testRunner.top.unobserveFieldScoped("rooibosTestFinished")
|
|
188
|
+
m.testSuite.setTestTimer(0)
|
|
189
|
+
m.runSuiteFunction(m.tearDownFunctionName, "tearDown")
|
|
190
|
+
' ? " indicating test suite is done"
|
|
191
|
+
' m.testRunner.top.addFields({ asyncRooibosTestResult: {
|
|
192
|
+
' stats: m.stats
|
|
193
|
+
' tests: m.tests
|
|
194
|
+
' }
|
|
195
|
+
' })
|
|
196
|
+
m.testSuite.testGroupDone()
|
|
197
|
+
end function
|
|
198
|
+
|
|
86
199
|
private function runSuiteFunction(methodName, defaultMethodName, test = invalid)
|
|
87
200
|
|
|
88
201
|
if methodName = invalid or methodName = ""
|
|
@@ -108,4 +221,9 @@ namespace rooibos
|
|
|
108
221
|
end function
|
|
109
222
|
|
|
110
223
|
end class
|
|
224
|
+
|
|
225
|
+
function onTestComplete()
|
|
226
|
+
' ? "++++++++ THE TEST COMPLETED"
|
|
227
|
+
m.testRunner.currentGroup.onAsyncTestComplete()
|
|
228
|
+
end function
|
|
111
229
|
end namespace
|
|
@@ -1,74 +1,83 @@
|
|
|
1
|
-
namespace rooibos
|
|
2
|
-
class TestResult
|
|
3
|
-
|
|
4
|
-
public isFail = false
|
|
5
|
-
public isCrash = false
|
|
6
|
-
public message = ""
|
|
7
|
-
public lineNumber = -1
|
|
8
|
-
public test = invalid
|
|
9
|
-
public time = 0
|
|
10
|
-
public error = invalid
|
|
11
|
-
|
|
12
|
-
function new(test)
|
|
13
|
-
m.test = test
|
|
14
|
-
end function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
m.isFail =
|
|
18
|
-
m.isCrash =
|
|
19
|
-
m.
|
|
20
|
-
m.
|
|
21
|
-
m.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
m.
|
|
38
|
-
m.message =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
namespace rooibos
|
|
2
|
+
class TestResult
|
|
3
|
+
|
|
4
|
+
public isFail = false
|
|
5
|
+
public isCrash = false
|
|
6
|
+
public message = ""
|
|
7
|
+
public lineNumber = -1
|
|
8
|
+
public test = invalid
|
|
9
|
+
public time = 0
|
|
10
|
+
public error = invalid
|
|
11
|
+
|
|
12
|
+
function new(test)
|
|
13
|
+
m.test = test
|
|
14
|
+
end function
|
|
15
|
+
|
|
16
|
+
function merge(other)
|
|
17
|
+
m.isFail = other.isFail
|
|
18
|
+
m.isCrash = other.isCrash
|
|
19
|
+
m.message = other.message
|
|
20
|
+
m.lineNumber = other.lineNumber
|
|
21
|
+
m.time = other.time
|
|
22
|
+
m.error = other.error
|
|
23
|
+
end function
|
|
24
|
+
|
|
25
|
+
function reset() as void
|
|
26
|
+
m.isFail = false
|
|
27
|
+
m.isCrash = false
|
|
28
|
+
m.time = 0
|
|
29
|
+
m.message = ""
|
|
30
|
+
m.lineNumber = -1
|
|
31
|
+
end function
|
|
32
|
+
|
|
33
|
+
function fail(message as string, lineNumber = -1)
|
|
34
|
+
if message <> "" and not m.isFail
|
|
35
|
+
if not m.isFail
|
|
36
|
+
m.lineNumber = lineNumber
|
|
37
|
+
m.isFail = true
|
|
38
|
+
m.message = message
|
|
39
|
+
end if
|
|
40
|
+
end if
|
|
41
|
+
end function
|
|
42
|
+
|
|
43
|
+
function crash(message as string, error)
|
|
44
|
+
if message <> "" and not m.isCrash
|
|
45
|
+
if not m.isCrash
|
|
46
|
+
m.error = error
|
|
47
|
+
m.message = "test crashed!"
|
|
48
|
+
m.isFail = true
|
|
49
|
+
m.isCrash = true
|
|
50
|
+
end if
|
|
51
|
+
end if
|
|
52
|
+
end function
|
|
53
|
+
|
|
54
|
+
function getMessage() as string
|
|
55
|
+
if m.isFail
|
|
56
|
+
if m.message <> invalid
|
|
57
|
+
return m.message
|
|
58
|
+
else
|
|
59
|
+
return "unknown test failure"
|
|
60
|
+
end if
|
|
61
|
+
else if m.isCrash
|
|
62
|
+
if m.message <> invalid
|
|
63
|
+
return m.message
|
|
64
|
+
else
|
|
65
|
+
return "unknown test crash"
|
|
66
|
+
end if
|
|
67
|
+
else
|
|
68
|
+
return ""
|
|
69
|
+
end if
|
|
70
|
+
end function
|
|
71
|
+
|
|
72
|
+
function getStatusText()
|
|
73
|
+
if m.isCrash
|
|
74
|
+
return "CRASH"
|
|
75
|
+
else if m.isFail
|
|
76
|
+
return "FAIL"
|
|
77
|
+
else
|
|
78
|
+
return "PASS"
|
|
79
|
+
end if
|
|
80
|
+
end function
|
|
81
|
+
|
|
82
|
+
end class
|
|
74
83
|
end namespace
|
|
@@ -26,6 +26,7 @@ namespace rooibos
|
|
|
26
26
|
end if
|
|
27
27
|
nodeContext.scene = testScene
|
|
28
28
|
|
|
29
|
+
m.top = nodeContext.top
|
|
29
30
|
m.nodeContext = nodeContext
|
|
30
31
|
|
|
31
32
|
m.stats = new rooibos.Stats()
|
|
@@ -99,6 +100,12 @@ namespace rooibos
|
|
|
99
100
|
|
|
100
101
|
m.testReporter.reportResults(m.stats)
|
|
101
102
|
|
|
103
|
+
rooibosResult = {
|
|
104
|
+
stats: m.stats
|
|
105
|
+
testSuites: m.testSuites
|
|
106
|
+
}
|
|
107
|
+
m.nodeContext.global.testsScene.rooibosTestResult = rooibosResult
|
|
108
|
+
|
|
102
109
|
'code coverage is not enabled in rooibos 4.0.0 - will get added again in future
|
|
103
110
|
' if Rooibos.Common.isFunction(RBS_reportCodeCoverage)
|
|
104
111
|
' 'bs:disable-next-line
|
|
@@ -125,20 +132,53 @@ namespace rooibos
|
|
|
125
132
|
testSuite.top = m.nodeContext.top
|
|
126
133
|
testSuite.scene = m.nodeContext.global.testsScene
|
|
127
134
|
testSuite.catchCrashes = m.config.catchCrashes
|
|
135
|
+
m.nodeContext.testSuite = testSuite
|
|
136
|
+
m.nodeTestName = nodeTestName
|
|
137
|
+
m.nodeContext.testRunner = m
|
|
138
|
+
m.nodeContext.top.addFields({
|
|
139
|
+
"rooibosSuiteFinished": false
|
|
140
|
+
"rooibosTestFinished": false
|
|
141
|
+
"rooibosTestIsAsync": false
|
|
142
|
+
"rooibosGroupFinished": false
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
end if
|
|
146
|
+
|
|
147
|
+
if testSuite <> invalid
|
|
148
|
+
m.currentTestSuite = testSuite
|
|
149
|
+
testSuite.testRunner = m
|
|
150
|
+
if testSuite.isAsync = true
|
|
151
|
+
? "Running suite asynchronously!"
|
|
152
|
+
m.nodeContext.top.observeFieldScoped("rooibosSuiteFinished", "Rooibos_onTestSuiteComplete")
|
|
153
|
+
testSuite.run()
|
|
154
|
+
else
|
|
155
|
+
? "Running suite synchronously!"
|
|
156
|
+
testSuite.run()
|
|
157
|
+
return m.onTestSuiteComplete()
|
|
158
|
+
end if
|
|
159
|
+
|
|
160
|
+
else
|
|
161
|
+
? "[ERROR] could not create test suite " ; nodeTestName
|
|
128
162
|
end if
|
|
129
163
|
|
|
164
|
+
? "ERROR! (runInNodeMode) executing node test " + nodeTestName + " was unsuccessful."
|
|
165
|
+
|
|
166
|
+
return invalid
|
|
167
|
+
end function
|
|
168
|
+
|
|
169
|
+
private function onTestSuiteComplete()
|
|
170
|
+
testSuite = m.currentTestSuite
|
|
130
171
|
if testSuite <> invalid
|
|
131
|
-
testSuite.run()
|
|
132
172
|
return {
|
|
133
173
|
stats: testSuite.stats
|
|
134
174
|
tests: testSuite.tests
|
|
135
175
|
}
|
|
176
|
+
|
|
136
177
|
else
|
|
137
|
-
? "[ERROR] could not create test suite " ; nodeTestName
|
|
178
|
+
? "[ERROR] could not create test suite " ; m.testRunner.nodeTestName
|
|
138
179
|
end if
|
|
139
180
|
|
|
140
|
-
? "ERROR! executing node test " + nodeTestName + " was unsuccessful."
|
|
141
|
-
|
|
181
|
+
? "ERROR! (onTestSuiteComplete) executing node test " + m.testRunner.nodeTestName + " was unsuccessful."
|
|
142
182
|
return invalid
|
|
143
183
|
end function
|
|
144
184
|
|
|
@@ -153,25 +193,66 @@ namespace rooibos
|
|
|
153
193
|
else
|
|
154
194
|
testSuite.run()
|
|
155
195
|
end if
|
|
156
|
-
|
|
157
196
|
m.stats.merge(testSuite.stats)
|
|
197
|
+
|
|
158
198
|
end if
|
|
159
199
|
end function
|
|
160
200
|
|
|
201
|
+
private function waitForField(target, fieldName, delay = 500, maxAttempts = 10)
|
|
202
|
+
attempts = 0
|
|
203
|
+
if target = invalid
|
|
204
|
+
return false
|
|
205
|
+
end if
|
|
206
|
+
|
|
207
|
+
initialValue = target[fieldName]
|
|
208
|
+
while target[fieldName] = initialValue
|
|
209
|
+
port = CreateObject("roMessagePort")
|
|
210
|
+
wait(delay, port)
|
|
211
|
+
attempts++
|
|
212
|
+
if attempts = maxAttempts
|
|
213
|
+
return false
|
|
214
|
+
end if
|
|
215
|
+
' ? "waiting for signal field '" ; fieldName "' - " ; attempts " VALUE " target[fieldName]
|
|
216
|
+
end while
|
|
217
|
+
|
|
218
|
+
return true
|
|
219
|
+
end function
|
|
220
|
+
|
|
221
|
+
function wait(delay = 1)
|
|
222
|
+
port = CreateObject("roMessagePort")
|
|
223
|
+
wait(delay, port)
|
|
224
|
+
end function
|
|
225
|
+
|
|
161
226
|
private function runNodeTest(testSuite) as void
|
|
162
227
|
if testSuite.generatedNodeName <> ""
|
|
163
228
|
? " +++++RUNNING NODE TEST"
|
|
164
229
|
? " node type is " ; testSuite.generatedNodeName
|
|
165
230
|
|
|
166
231
|
node = m.testScene.createChild(testSuite.generatedNodeName)
|
|
232
|
+
'wait on the field
|
|
167
233
|
|
|
168
234
|
if type(node) = "roSGNode"
|
|
169
|
-
|
|
235
|
+
m.groups = []
|
|
236
|
+
for each groupData in testSuite.groupsData
|
|
237
|
+
'bs:disable-next-line
|
|
238
|
+
group = new TestGroup(testSuite, groupData)
|
|
239
|
+
testSuite.groups.push(group)
|
|
240
|
+
end for
|
|
241
|
+
|
|
242
|
+
if testSuite.isAsync = true
|
|
243
|
+
if node.rooibosSuiteFinished = false
|
|
244
|
+
timeout = testSuite.asyncTimeout = invalid ? 60000 : testSuite.asyncTimeout
|
|
245
|
+
|
|
246
|
+
? "Waiting max " timeout "ms for the test suite to finish"
|
|
247
|
+
m.waitForField(node, "rooibosSuiteFinished", 10, timeout / 10)
|
|
248
|
+
end if
|
|
249
|
+
end if
|
|
250
|
+
nodeResults = node.asyncRooibosTestResult
|
|
170
251
|
if nodeResults <> invalid
|
|
171
|
-
testSuite.stats
|
|
172
|
-
testSuite
|
|
252
|
+
testSuite.stats.merge(nodeResults.stats)
|
|
253
|
+
m.mergeGroups(testSuite, nodeResults.groups)
|
|
173
254
|
else
|
|
174
|
-
? " ERROR! The node test"; testSuite.name; " did not
|
|
255
|
+
? " ERROR! The node test"; testSuite.name; " did not indicate test completion. Did you call m.done() in your test? Did you correctly configure your node test? Please refer to : https://github.com/georgejecook/rooibos/blob/master/docs/index.md#testing-scenegraph-nodes"
|
|
175
256
|
end if
|
|
176
257
|
m.testScene.removeChild(node)
|
|
177
258
|
return
|
|
@@ -190,6 +271,24 @@ namespace rooibos
|
|
|
190
271
|
testSuite.failedCount += testSuite.testsData.count()
|
|
191
272
|
end function
|
|
192
273
|
|
|
274
|
+
private function mergeGroups(testSuite, groups)
|
|
275
|
+
for i = 0 to testSuite.groups.count() - 1
|
|
276
|
+
group = groups[i]
|
|
277
|
+
realGroup = testSuite.groups[i]
|
|
278
|
+
realGroup.stats.merge(group.stats)
|
|
279
|
+
realGroup.hasFailures = group.hasFailures
|
|
280
|
+
realGroup.tests = []
|
|
281
|
+
for testDataIndex = 0 to group.testsData.count() - 1
|
|
282
|
+
testData = group.testsData[testDataIndex]
|
|
283
|
+
realTest = new rooibos.Test(m, testData)
|
|
284
|
+
realTest.testSuite = testSuite
|
|
285
|
+
realGroup.tests.push(realTest)
|
|
286
|
+
test = group.tests[i]
|
|
287
|
+
realTest.result.merge(test.result)
|
|
288
|
+
end for
|
|
289
|
+
end for
|
|
290
|
+
end function
|
|
291
|
+
|
|
193
292
|
private function sendHomeKeypress()
|
|
194
293
|
ut = createObject("roUrlTransfer")
|
|
195
294
|
ut.SetUrl("http://localhost:8060/keypress/Home")
|
|
@@ -218,4 +317,8 @@ namespace rooibos
|
|
|
218
317
|
nodeRunner = new TestRunner(m.top.getScene(), m)
|
|
219
318
|
return nodeRunner.runInNodeMode(name)
|
|
220
319
|
end function
|
|
320
|
+
|
|
321
|
+
function onTestSuiteComplete()
|
|
322
|
+
m.testRunner.onTestSuiteComplete()
|
|
323
|
+
end function
|
|
221
324
|
end namespace
|
|
@@ -18,6 +18,7 @@ var AnnotationType;
|
|
|
18
18
|
AnnotationType["Params"] = "params";
|
|
19
19
|
AnnotationType["IgnoreParams"] = "ignoreparams";
|
|
20
20
|
AnnotationType["SoloParams"] = "onlyparams";
|
|
21
|
+
AnnotationType["Async"] = "async";
|
|
21
22
|
AnnotationType["Tags"] = "tags";
|
|
22
23
|
AnnotationType["NoCatch"] = "nocatch";
|
|
23
24
|
AnnotationType["NoEarlyExit"] = "noearlyexit";
|
|
@@ -36,12 +37,13 @@ let annotationLookup = {
|
|
|
36
37
|
params: AnnotationType.Params,
|
|
37
38
|
ignoreparams: AnnotationType.IgnoreParams,
|
|
38
39
|
onlyparams: AnnotationType.SoloParams,
|
|
40
|
+
async: AnnotationType.Async,
|
|
39
41
|
tags: AnnotationType.Tags,
|
|
40
42
|
nocatch: AnnotationType.NoCatch,
|
|
41
43
|
noearlyexit: AnnotationType.NoEarlyExit
|
|
42
44
|
};
|
|
43
45
|
class AnnotationParams {
|
|
44
|
-
constructor(annotation, text, lineNumber, params, isIgnore = false, isSolo = false, noCatch = false,
|
|
46
|
+
constructor(annotation, text, lineNumber, params, isIgnore = false, isSolo = false, noCatch = false, noEarlyexit = false) {
|
|
45
47
|
this.annotation = annotation;
|
|
46
48
|
this.text = text;
|
|
47
49
|
this.lineNumber = lineNumber;
|
|
@@ -49,7 +51,7 @@ class AnnotationParams {
|
|
|
49
51
|
this.isIgnore = isIgnore;
|
|
50
52
|
this.isSolo = isSolo;
|
|
51
53
|
this.noCatch = noCatch;
|
|
52
|
-
this.
|
|
54
|
+
this.noEarlyexit = noEarlyexit;
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
exports.AnnotationParams = AnnotationParams;
|
|
@@ -79,10 +81,12 @@ class RooibosAnnotation {
|
|
|
79
81
|
let blockAnnotation;
|
|
80
82
|
let testAnnotation;
|
|
81
83
|
let isSolo = false;
|
|
84
|
+
let async = false;
|
|
82
85
|
let isIgnore = false;
|
|
83
86
|
let noCatch = false;
|
|
84
87
|
let noEarlyExit = false;
|
|
85
88
|
let nodeName = null;
|
|
89
|
+
let asyncTimeout = -1;
|
|
86
90
|
let tags = [];
|
|
87
91
|
if ((_a = statement.annotations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
88
92
|
let describeAnnotations = statement.annotations.filter((a) => getAnnotationType(a.name) === AnnotationType.Describe);
|
|
@@ -97,6 +101,11 @@ class RooibosAnnotation {
|
|
|
97
101
|
case AnnotationType.NoEarlyExit:
|
|
98
102
|
noEarlyExit = true;
|
|
99
103
|
break;
|
|
104
|
+
case AnnotationType.Async:
|
|
105
|
+
async = true;
|
|
106
|
+
//ensure the arg is an integer, if not set to 2000
|
|
107
|
+
asyncTimeout = annotation.getArguments().length === 1 ? parseInt(annotation.getArguments()[0]) : -1;
|
|
108
|
+
break;
|
|
100
109
|
case AnnotationType.NoCatch:
|
|
101
110
|
noCatch = true;
|
|
102
111
|
break;
|
|
@@ -122,9 +131,13 @@ class RooibosAnnotation {
|
|
|
122
131
|
case AnnotationType.TestSuite:
|
|
123
132
|
const groupName = annotation.getArguments()[0];
|
|
124
133
|
blockAnnotation = new RooibosAnnotation(file, annotation, annotationType, annotation.name, groupName, isIgnore, isSolo, null, nodeName, tags, noCatch, noEarlyExit);
|
|
134
|
+
blockAnnotation.isAsync = async;
|
|
135
|
+
blockAnnotation.asyncTimeout = asyncTimeout === -1 ? 60000 : asyncTimeout;
|
|
125
136
|
nodeName = null;
|
|
126
137
|
isSolo = false;
|
|
127
138
|
isIgnore = false;
|
|
139
|
+
async = false;
|
|
140
|
+
asyncTimeout = -1;
|
|
128
141
|
break;
|
|
129
142
|
case AnnotationType.It:
|
|
130
143
|
const testName = annotation.getArguments()[0];
|
|
@@ -132,6 +145,8 @@ class RooibosAnnotation {
|
|
|
132
145
|
Diagnostics_1.diagnosticNoTestNameDefined(file, annotation);
|
|
133
146
|
}
|
|
134
147
|
let newAnnotation = new RooibosAnnotation(file, annotation, annotationType, annotation.name, testName, isIgnore, isSolo, undefined, undefined, tags, noCatch);
|
|
148
|
+
newAnnotation.isAsync = async;
|
|
149
|
+
newAnnotation.asyncTimeout = asyncTimeout === -1 ? 2000 : asyncTimeout;
|
|
135
150
|
if (testAnnotation) {
|
|
136
151
|
Diagnostics_1.diagnosticMultipleTestOnFunctionDefined(file, newAnnotation.annotation);
|
|
137
152
|
}
|
|
@@ -140,6 +155,8 @@ class RooibosAnnotation {
|
|
|
140
155
|
}
|
|
141
156
|
isSolo = false;
|
|
142
157
|
isIgnore = false;
|
|
158
|
+
async = false;
|
|
159
|
+
asyncTimeout = -1;
|
|
143
160
|
break;
|
|
144
161
|
case AnnotationType.Params:
|
|
145
162
|
case AnnotationType.SoloParams:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Annotation.js","sourceRoot":"","sources":["../../../src/lib/rooibos/Annotation.ts"],"names":[],"mappings":";;;AACA,sDAA4K;AAE5K,IAAY,
|
|
1
|
+
{"version":3,"file":"Annotation.js","sourceRoot":"","sources":["../../../src/lib/rooibos/Annotation.ts"],"names":[],"mappings":";;;AACA,sDAA4K;AAE5K,IAAY,cAmBX;AAnBD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,2BAAS,CAAA;IACT,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;IACzB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IAC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YAAY,EAAE,CAAC,CAAC;QAC1D,IAAI,MAAM,GAAG,cAAc,KAAK,cAAc,CAAC,UAAU,CAAC;QAC1D,IAAI,QAAQ,GAAG,cAAc,KAAK,cAAc,CAAC,YAAY,CAAC;QAC9D,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;SAC7B;QACD,IAAI;YACA,IAAI,SAAS,EAAE;gBACX,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,YAAY,EAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;aAC3J;iBAAM;gBACH,qCAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;aAC7C;SACJ;QAAC,OAAO,CAAC,EAAE;YACR,qCAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;SAC7C;IACL,CAAC;CAEJ;AAjJD,8CAiJC;AAED,SAAgB,iBAAiB,CAAC,IAAY;IAC1C,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC;AACvE,CAAC;AAFD,8CAEC"}
|
|
@@ -96,6 +96,7 @@ class RooibosSession {
|
|
|
96
96
|
"printLcov": ${this.config.printLcov ? 'true' : 'false'}
|
|
97
97
|
"port": "${this.config.port || 'invalid'}"
|
|
98
98
|
"catchCrashes": ${this.config.catchCrashes ? 'true' : 'false'}
|
|
99
|
+
"keepAppOpen": ${this.config.keepAppOpen === undefined || this.config.keepAppOpen ? 'true' : 'false'}
|
|
99
100
|
}`));
|
|
100
101
|
}
|
|
101
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RooibosSession.js","sourceRoot":"","sources":["../../../src/lib/rooibos/RooibosSession.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;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AAkB,CAAC,KAAgB;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnF,CAAC;IAEM,8BAA8B,CAAC,EAAkB,EAAE,MAAiB;QACvE,IAAI,MAAM,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,oBAAoB,CAAC,CAAC;QAC1E,IAAI,MAAM,EAAE;YACR,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,mCAAgB,CAAC;gBAC/D,UAAU;gBACV,gBAAgB,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE;gBAC/C,gBAAgB;gBAChB,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,IAAI,GAAG,CAAC;gBACvE,OAAO;gBACP,GAAG;aACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAClB;IACL,CAAC;CACJ;AA1LD,wCA0LC"}
|
|
@@ -6,6 +6,8 @@ class TestCase {
|
|
|
6
6
|
constructor(annotation, name, funcName, isSolo, isIgnored, lineNumber, params = null, paramTestIndex = 0, paramLineNumber = 0, expectedNumberOfParams = 0) {
|
|
7
7
|
this.annotation = annotation;
|
|
8
8
|
this.isSolo = isSolo;
|
|
9
|
+
this.isAsync = annotation.isAsync;
|
|
10
|
+
this.asyncTimeout = annotation.asyncTimeout;
|
|
9
11
|
this.funcName = funcName;
|
|
10
12
|
this.isIgnored = isIgnored;
|
|
11
13
|
this.name = name;
|
|
@@ -20,22 +22,24 @@ class TestCase {
|
|
|
20
22
|
}
|
|
21
23
|
asText() {
|
|
22
24
|
let rawParamsText = this.fixBadJson(this.rawParams).replace(/null/g, 'invalid');
|
|
23
|
-
return `
|
|
24
|
-
{
|
|
25
|
-
isSolo: ${this.isSolo}
|
|
26
|
-
noCatch: ${this.annotation.noCatch}
|
|
27
|
-
funcName: "${this.funcName || ''}"
|
|
28
|
-
isIgnored: ${this.isIgnored}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
return `
|
|
26
|
+
{
|
|
27
|
+
isSolo: ${this.isSolo}
|
|
28
|
+
noCatch: ${this.annotation.noCatch}
|
|
29
|
+
funcName: "${this.funcName || ''}"
|
|
30
|
+
isIgnored: ${this.isIgnored}
|
|
31
|
+
isAsync: ${this.isAsync}
|
|
32
|
+
asyncTimeout: ${this.asyncTimeout || 2000}
|
|
33
|
+
isParamTest: ${this.isParamTest}
|
|
34
|
+
name: ${Utils_1.sanitizeBsJsonString(this.name)}
|
|
35
|
+
lineNumber: ${this.lineNumber + 2}
|
|
36
|
+
paramLineNumber: ${this.paramLineNumber}
|
|
37
|
+
assertIndex: ${this.assertIndex}
|
|
38
|
+
assertLineNumberMap: ${JSON.stringify(this.assertLineNumberMap)}
|
|
39
|
+
rawParams: ${rawParamsText}
|
|
40
|
+
paramTestIndex: ${this.paramTestIndex}
|
|
41
|
+
expectedNumberOfParams: ${this.expectedNumberOfParams}
|
|
42
|
+
isParamsValid: ${(this.rawParams || []).length === this.expectedNumberOfParams}
|
|
39
43
|
}`;
|
|
40
44
|
}
|
|
41
45
|
addAssertLine(lineNumber) {
|
|
@@ -47,7 +51,9 @@ class TestCase {
|
|
|
47
51
|
if (Array.isArray(o)) {
|
|
48
52
|
return `[${o
|
|
49
53
|
.map(obj => `${this.fixBadJson(obj)}`)
|
|
50
|
-
.join(',')
|
|
54
|
+
.join(',')
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/indent
|
|
56
|
+
}]`;
|
|
51
57
|
}
|
|
52
58
|
// not an object, stringify using native function
|
|
53
59
|
if (typeof o !== 'object' || o === null) {
|
|
@@ -58,7 +64,9 @@ class TestCase {
|
|
|
58
64
|
.map(key => {
|
|
59
65
|
return `"${key.replace(/"/g, '')}":${this.fixBadJson(o[key])}`;
|
|
60
66
|
})
|
|
61
|
-
.join(',')
|
|
67
|
+
.join(',')
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/indent
|
|
69
|
+
}}`;
|
|
62
70
|
}
|
|
63
71
|
}
|
|
64
72
|
exports.TestCase = TestCase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestCase.js","sourceRoot":"","sources":["../../../src/lib/rooibos/TestCase.ts"],"names":[],"mappings":";;;AACA,mCAA+C;AAE/C,MAAa,QAAQ;IACjB,YAAY,UAA6B,EAAE,IAAY,EAAE,QAAgB,EAAE,MAAe,EAAE,SAAkB,EAAE,UAAkB,EAC9H,SAAgB,IAAI,EAAE,cAAc,GAAG,CAAC,EAAE,eAAe,GAAG,CAAC,EAAE,sBAAsB,GAAG,CAAC;QACzF,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;QACxB,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC;IAE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,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACnE,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC;QACV,qDAAqD;QACrD,GAAG,CAAC;IACZ,CAAC;CAEJ;AA1FD,4BA0FC"}
|
|
@@ -29,6 +29,10 @@ class TestGroup extends TestSuite_1.TestBlock {
|
|
|
29
29
|
else if (testCase.isSolo) {
|
|
30
30
|
this.hasSoloTests = true;
|
|
31
31
|
this.soloTestCases.push(testCase);
|
|
32
|
+
this.hasAsyncTests = testCase.isAsync;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.hasAsyncTests = testCase.isAsync;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
getTestCases() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestGroup.js","sourceRoot":"","sources":["../../../src/lib/rooibos/TestGroup.ts"],"names":[],"mappings":";;;AACA,mDAA6P;AAC7P,iDAAiD;AACjD,oFAAiF;AAEjF,sDAAqE;AAKrE,2CAAwC;AACxC,mCAAqE;AACrE,mCAA4B;AAE5B,MAAa,SAAU,SAAQ,qBAAS;IAEpC,YAAY,SAAoB,EAAE,UAA6B;QAC3D,KAAK,CAAC,UAAU,CAAC,CAAC;QASf,cAAS,GAAG,IAAI,GAAG,EAAoB,CAAC;QACxC,qBAAgB,GAAe,EAAE,CAAC;QAClC,kBAAa,GAAe,EAAE,CAAC;QAVlC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC;QACpF,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,IAAI,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;QAC7F,IAAI,CAAC,sBAAsB,GAAG,IA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;aACzE;iBAAM,IAAI,qCAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACzC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;aACpC;SACJ;IACL,CAAC;IAEO,0BAA0B,CAAC,KAA0B;QACzD,IAAI,IAAI,CAAC;QACT,IAAI,sCAAqB,CAAC,KAAK,CAAC,IAAI,uCAAsB,CAAC,KAAK,CAAC,EAAE;YAE/D,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC;YACjB,OAAO,IAAI,CAAC,GAAG,EAAE;gBACb,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;aACnB;SACJ;aAAM;YACH,IAAI,GAAG,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CAEJ;AA5MD,8BA4MC"}
|
|
@@ -13,6 +13,7 @@ class TestBlock {
|
|
|
13
13
|
this.isIncluded = false;
|
|
14
14
|
this.hasFailures = false;
|
|
15
15
|
this.hasSoloTests = false;
|
|
16
|
+
this.hasAsyncTests = false;
|
|
16
17
|
this.hasIgnoredTests = false;
|
|
17
18
|
}
|
|
18
19
|
get file() {
|
|
@@ -30,6 +31,12 @@ class TestBlock {
|
|
|
30
31
|
get isSolo() {
|
|
31
32
|
return this.annotation.isSolo;
|
|
32
33
|
}
|
|
34
|
+
get isAsync() {
|
|
35
|
+
return this.annotation.isAsync;
|
|
36
|
+
}
|
|
37
|
+
get asyncTimeout() {
|
|
38
|
+
return this.annotation.asyncTimeout;
|
|
39
|
+
}
|
|
33
40
|
get isIgnored() {
|
|
34
41
|
return this.annotation.isIgnore;
|
|
35
42
|
}
|
|
@@ -58,6 +65,9 @@ class TestSuite extends TestBlock {
|
|
|
58
65
|
if (group.hasSoloTests) {
|
|
59
66
|
this.hasSoloTests = true;
|
|
60
67
|
}
|
|
68
|
+
if (group.hasAsyncTests) {
|
|
69
|
+
this.annotation.isAsync = true;
|
|
70
|
+
}
|
|
61
71
|
if (group.isSolo) {
|
|
62
72
|
this.hasSoloGroups = true;
|
|
63
73
|
}
|
|
@@ -102,6 +112,8 @@ class TestSuite extends TestBlock {
|
|
|
102
112
|
beforeEachFunctionName: "${this.beforeEachFunctionName || ''}"
|
|
103
113
|
afterEachFunctionName: "${this.afterEachFunctionName || ''}"
|
|
104
114
|
isNodeTest: ${this.isNodeTest || false}
|
|
115
|
+
isAsync: ${this.isAsync || false}
|
|
116
|
+
asyncTimeout: ${this.asyncTimeout || 60000}
|
|
105
117
|
nodeName: "${this.nodeName || ''}"
|
|
106
118
|
generatedNodeName: "${this.generatedNodeName || ''}"
|
|
107
119
|
testGroups: [${testGroups}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestSuite.js","sourceRoot":"","sources":["../../../src/lib/rooibos/TestSuite.ts"],"names":[],"mappings":";;;AAEA,sDAAqG;AAKrG,mCAAoE;AAEpE;;GAEG;AACH,MAAa,SAAS;IAClB,YACW,UAA6B;QAA7B,eAAU,GAAV,UAAU,CAAmB;
|
|
1
|
+
{"version":3,"file":"TestSuite.js","sourceRoot":"","sources":["../../../src/lib/rooibos/TestSuite.ts"],"names":[],"mappings":";;;AAEA,sDAAqG;AAKrG,mCAAoE;AAEpE;;GAEG;AACH,MAAa,SAAS;IAClB,YACW,UAA6B;QAA7B,eAAU,GAAV,UAAU,CAAmB;QAiCjC,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,KAAK,CAAC;QAEnB,gBAAW,GAAG,KAAK,CAAC;QACpB,iBAAY,GAAG,KAAK,CAAC;QACrB,kBAAa,GAAG,KAAK,CAAC;QACtB,oBAAe,GAAG,KAAK,CAAC;IArC/B,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;IACD,IAAW,OAAO;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,CAAC;IAED,IAAW,QAAQ;QACf,OAAO,IA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Coverage = true;
|
|
41
41
|
}
|
|
42
|
+
if (config.keepAppOpen === undefined) {
|
|
43
|
+
config.keepAppOpen = true;
|
|
44
|
+
}
|
|
42
45
|
//ignore roku modules by default
|
|
43
46
|
if (config.includeFilters === undefined) {
|
|
44
47
|
config.includeFilters = [
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";;;AAUA,mDAEwB;AACxB,iEAA8D;AAC9D,+EAA4E;AAC5E,2DAAwD;AAExD,uCAAuC;AAEvC,MAAa,aAAa;IAA1B;QAEW,SAAI,GAAG,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";;;AAUA,mDAEwB;AACxB,iEAA8D;AAC9D,+EAA4E;AAC5E,2DAAwD;AAExD,uCAAuC;AAEvC,MAAa,aAAa;IAA1B;QAEW,SAAI,GAAG,eAAe,CAAC;IAmIlC,CAAC;IA5HG,mBAAmB,CAAC,OAAuB;QACvC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAE,OAAO,CAAC,OAAe,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAErE,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAC7D,IAAI,CAAC,qBAAqB,GAAG,IAAI,6CAAqB,CAAC,OAAO,CAAC,CAAC;SACnE;IACL,CAAC;IACO,SAAS,CAAC,OAAY;QAC1B,IAAI,MAAM,GAAkB,OAAO,CAAC;QACpC,IAAI,MAAM,CAAC,cAAc,KAAK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AAG,EAAE;IAChB,OAAO,IAAI,aAAa,EAAE,CAAC;AAC/B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rooibos-roku",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "simple, flexible, fun brightscript test framework for roku scenegraph apps - roku brighterscript plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/events": "^3.0.0",
|
|
25
25
|
"@types/fs-extra": "^5.0.1",
|
|
26
26
|
"@types/mocha": "^9.1.1",
|
|
27
|
-
"@types/node": "^
|
|
27
|
+
"@types/node": "^14.18.41",
|
|
28
28
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
29
29
|
"@typescript-eslint/parser": "^5.27.0",
|
|
30
30
|
"brighterscript": "^0.61.3",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"source-map-support": "^0.5.13",
|
|
41
41
|
"trim-whitespace": "^1.3.3",
|
|
42
42
|
"ts-node": "^9.0.0",
|
|
43
|
-
"typescript": "^
|
|
43
|
+
"typescript": "^4.9.5"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"preversion": "npm run build && npm run lint && npm run test",
|