File tree 1 file changed +5
-2
lines changed
test/integration-tests/commands
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,22 @@ import { mockGlobalObject } from "../../MockUtils";
17
17
import { expect } from "chai" ;
18
18
import { activateExtensionForSuite , folderInRootWorkspace } from "../utilities/testutilities" ;
19
19
import { Commands } from "../../../src/commands" ;
20
+ import { SwiftOutputChannel } from "../../../src/ui/SwiftOutputChannel" ;
20
21
21
22
suite ( "runPluginTask Test Suite" , ( ) => {
22
23
const executeCommand = vscode . commands . executeCommand ;
23
24
const commandsMock = mockGlobalObject ( vscode , "commands" ) ;
24
25
25
26
activateExtensionForSuite ( {
26
27
async setup ( ctx ) {
27
- await folderInRootWorkspace ( "command-plugin" , ctx ) ;
28
+ const folder = await folderInRootWorkspace ( "command-plugin" , ctx ) ;
29
+ const outputChannel = new SwiftOutputChannel ( "runPluginTask.tests" ) ;
30
+ await folder . loadSwiftPlugins ( outputChannel ) ;
28
31
} ,
29
32
} ) ;
30
33
31
34
test ( "Executes runTask command" , async ( ) => {
32
- executeCommand ( Commands . RUN_PLUGIN_TASK ) ;
35
+ await executeCommand ( Commands . RUN_PLUGIN_TASK ) ;
33
36
34
37
expect ( commandsMock . executeCommand ) . to . have . been . calledOnceWith (
35
38
"workbench.action.tasks.runTask" ,
You can’t perform that action at this time.
0 commit comments