@@ -28,6 +28,7 @@ import {
28
28
import { FolderContext } from "../../src/FolderContext" ;
29
29
import { assertContains } from "./testexplorer/utilities" ;
30
30
import { resolveScope } from "../../src/utilities/tasks" ;
31
+ import { tag } from "../tags" ;
31
32
32
33
function assertContainsArg ( execution : SwiftExecution , arg : string ) {
33
34
assert ( execution ?. args . find ( a => a === arg ) ) ;
@@ -40,7 +41,7 @@ function assertNotContainsArg(execution: SwiftExecution, arg: string) {
40
41
) ;
41
42
}
42
43
43
- suite ( "WorkspaceContext Test Suite" , ( ) => {
44
+ tag ( "medium" ) . suite ( "WorkspaceContext Test Suite" , ( ) => {
44
45
let workspaceContext : WorkspaceContext ;
45
46
const packageFolder : vscode . Uri = testAssetUri ( "defaultPackage" ) ;
46
47
@@ -88,7 +89,7 @@ suite("WorkspaceContext Test Suite", () => {
88
89
} finally {
89
90
observer ?. dispose ( ) ;
90
91
}
91
- } ) . timeout ( 60000 * 2 ) ;
92
+ } ) ;
92
93
} ) ;
93
94
94
95
suite ( "Tasks" , function ( ) {
@@ -106,9 +107,6 @@ suite("WorkspaceContext Test Suite", () => {
106
107
}
107
108
} ) ;
108
109
109
- // Was hitting a timeout in suiteSetup during CI build once in a while
110
- this . timeout ( 15000 ) ;
111
-
112
110
test ( "Default Task values" , async ( ) => {
113
111
const folder = workspaceContext . folders . find (
114
112
f => f . folder . fsPath === packageFolder . fsPath
@@ -190,32 +188,16 @@ suite("WorkspaceContext Test Suite", () => {
190
188
const execution = buildAllTask . execution as SwiftExecution ;
191
189
assertContainsArg ( execution , "--replace-scm-with-registry" ) ;
192
190
} ) ;
193
-
194
- test ( "Swift Path" , async ( ) => {
195
- /* Temporarily disabled (need swift path to update immediately for this to work)
196
- const folder = workspaceContext.folders.find(
197
- f => f.folder.fsPath === packageFolder.fsPath
198
- );
199
- assert(folder);
200
- await swiftConfig.update("path", "/usr/bin/swift");
201
- const buildAllTask = createBuildAllTask(folder);
202
- const execution = buildAllTask.execution as SwiftExecution;
203
- assert.strictEqual(execution?.command, "/usr/bin/swift");
204
- await swiftConfig.update("path", "");*/
205
- } ) ;
206
191
} ) ;
207
192
208
193
suite ( "Toolchain" , function ( ) {
209
- // Increase the timeout as this takes several seconds longer for the codeWorkspaceTests variant
210
- this . timeout ( 60000 ) ;
211
-
212
194
activateExtensionForSuite ( {
213
195
async setup ( ctx ) {
214
196
workspaceContext = ctx ;
215
197
} ,
216
198
} ) ;
217
199
218
- test ( "get project templates" , async ( ) => {
200
+ tag ( "small" ) . test ( "get project templates" , async ( ) => {
219
201
// This is only supported in swift versions >=5.8.0
220
202
const swiftVersion = workspaceContext . globalToolchain . swiftVersion ;
221
203
if ( swiftVersion . isLessThan ( new Version ( 5 , 8 , 0 ) ) ) {
@@ -248,6 +230,6 @@ suite("WorkspaceContext Test Suite", () => {
248
230
name : "Build Tool Plugin" ,
249
231
description : "A package that vends a build tool plugin." ,
250
232
} ) ;
251
- } ) . timeout ( 1000 ) ;
233
+ } ) ;
252
234
} ) ;
253
- } ) . timeout ( 15000 ) ;
235
+ } ) ;
0 commit comments