MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / runTests

Function runTests

apps/automated/src/tk-unit.ts:140–152  ·  view source on GitHub ↗
(tests: Array<TestInfoEntry>, recursiveIndex)

Source from the content-addressed store, hash-verified

138}
139
140export function runTests(tests: Array<TestInfoEntry>, recursiveIndex) {
141 testsQueue = tests;
142
143 for (let i = recursiveIndex; i < testsQueue.length; i++) {
144 const testEntry = testsQueue[i];
145
146 if (testEntry.testFunc.length > 0) {
147 return runAsync(testEntry, i);
148 } else {
149 runTest(testEntry);
150 }
151 }
152}
153
154export function assert(test: any, message?: string) {
155 if (!test) {

Callers 1

checkFinishedFunction · 0.70

Calls 2

runAsyncFunction · 0.85
runTestFunction · 0.85

Tested by

no test coverage detected