(args: FeaturesTestCommandInput, testResults: TestResult[] = [])
| 91 | } |
| 92 | |
| 93 | async function runGlobalFeatureTests(args: FeaturesTestCommandInput, testResults: TestResult[] = []): Promise<TestResult[]> { |
| 94 | const { collectionFolder } = args; |
| 95 | |
| 96 | const globalTestsFolder = `${collectionFolder}/test/_global`; |
| 97 | |
| 98 | log(`Scenarios: ${globalTestsFolder}\n`, { prefix: '\n📊', info: true }); |
| 99 | testResults = await doScenario(globalTestsFolder, '_global', args, testResults); |
| 100 | if (!testResults) { |
| 101 | fail(`Failed to run scenarios in ${globalTestsFolder}`); |
| 102 | return []; // We never reach here, we exit via fail(). |
| 103 | } |
| 104 | |
| 105 | return testResults; |
| 106 | } |
| 107 | |
| 108 | // Executes the same Feature twice with randomized options to ensure Feature can be installed >1. |
| 109 | async function runDuplicateTest(args: FeaturesTestCommandInput, feature: string, testResults: TestResult[] = []): Promise<TestResult[]> { |
no test coverage detected