MCPcopy Index your code
hub / github.com/devcontainers/cli / runGlobalFeatureTests

Function runGlobalFeatureTests

src/spec-node/featuresCLI/testCommandImpl.ts:93–106  ·  view source on GitHub ↗
(args: FeaturesTestCommandInput, testResults: TestResult[] = [])

Source from the content-addressed store, hash-verified

91}
92
93async 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.
109async function runDuplicateTest(args: FeaturesTestCommandInput, feature: string, testResults: TestResult[] = []): Promise<TestResult[]> {

Callers 1

doFeaturesTestCommandFunction · 0.85

Calls 3

logFunction · 0.85
doScenarioFunction · 0.85
failFunction · 0.85

Tested by

no test coverage detected