-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdeployWorkspaceProject.test.ts
More file actions
30 lines (24 loc) · 1.09 KB
/
deployWorkspaceProject.test.ts
File metadata and controls
30 lines (24 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { nonNullProp } from "@microsoft/vscode-azext-utils";
import { longRunningTestsEnabled } from '../../global.test';
import { generateParallelTests, type DwpParallelTestScenario } from "./parallelTests";
const testScenarios: DwpParallelTestScenario[] = generateParallelTests();
suite('deployWorkspaceProject', async function (this: Mocha.Suite) {
this.timeout(15 * 60 * 1000);
suiteSetup(async function (this: Mocha.Context) {
if (!longRunningTestsEnabled) {
this.skip();
}
for (const s of testScenarios) {
s.scenario = s.callback();
}
});
for (const s of testScenarios) {
test(s.title, async function () {
await nonNullProp(s, 'scenario');
});
}
});