@@ -38,7 +38,7 @@ import { UIMockInterface, MockInteraction } from "./ui-mock-interface";
38
38
* - Clean separation of concerns
39
39
*/
40
40
41
- suite ( "Git Workflow Integration Test Suite" , ( ) => {
41
+ suite ( "West Git Workspace Test Suite" , ( ) => {
42
42
let testWorkspaceDir : string ;
43
43
let originalWorkspaceFolders : readonly vscode . WorkspaceFolder [ ] | undefined ;
44
44
@@ -100,7 +100,7 @@ suite("Git Workflow Integration Test Suite", () => {
100
100
}
101
101
} ) ;
102
102
103
- test ( "Git Workspace Setup: West Git → Add Project → Custom Board Build" , async function ( ) {
103
+ test ( "Git Workspace Setup: West Git → SDK Install → Add Project → Custom Board Build" , async function ( ) {
104
104
this . timeout ( 1800000 ) ;
105
105
106
106
console . log ( "🚀 Starting git workspace test..." ) ;
@@ -130,7 +130,18 @@ suite("Git Workflow Integration Test Suite", () => {
130
130
131
131
await monitorWorkspaceSetup ( "git workspace" ) ;
132
132
133
- console . log ( "📁 Step 2: Adding project from example repo..." ) ;
133
+ console . log ( "⚙️ Step 2: Installing SDK..." ) ;
134
+ // Prime the mock interface for SDK installation interactions
135
+ gitUiMock . primeInteractions ( [
136
+ { type : 'quickpick' , value : 'automatic' , description : 'Select SDK Version' } ,
137
+ { type : 'quickpick' , value : 'select specific' , description : 'Select specific toolchains' } ,
138
+ { type : 'quickpick' , value : 'arm-zephyr-eabi' , description : 'Select ARM toolchain' , multiSelect : true }
139
+ ] ) ;
140
+
141
+ result = await vscode . commands . executeCommand ( "zephyr-ide.install-sdk" ) ;
142
+ assert . ok ( result , "SDK installation should succeed" ) ;
143
+
144
+ console . log ( "📁 Step 3: Adding project from example repo..." ) ;
134
145
// Prime the mock interface for project addition interactions
135
146
gitUiMock . primeInteractions ( [
136
147
{ type : 'opendialog' , value : path . join ( testWorkspaceDir , "zephyr-example.git" , "app" ) , description : 'Select app folder' }
@@ -139,7 +150,7 @@ suite("Git Workflow Integration Test Suite", () => {
139
150
result = await vscode . commands . executeCommand ( "zephyr-ide.add-project" ) ;
140
151
assert . ok ( result , "Project addition should succeed" ) ;
141
152
142
- console . log ( "🔨 Step 3 : Adding build configuration with custom board..." ) ;
153
+ console . log ( "🔨 Step 4 : Adding build configuration with custom board..." ) ;
143
154
// Prime the mock interface for build configuration interactions
144
155
gitUiMock . primeInteractions ( [
145
156
{ type : 'quickpick' , value : 'select other folder' , description : 'Select other folder for boards' } ,
@@ -161,7 +172,7 @@ suite("Git Workflow Integration Test Suite", () => {
161
172
result = await vscode . commands . executeCommand ( "zephyr-ide.add-build" ) ;
162
173
assert . ok ( result , "Build configuration should succeed" ) ;
163
174
164
- console . log ( "⚡ Step 4 : Executing build with custom board..." ) ;
175
+ console . log ( "⚡ Step 5 : Executing build with custom board..." ) ;
165
176
result = await vscode . commands . executeCommand ( "zephyr-ide.build" ) ;
166
177
assert . ok ( result , "Build execution should succeed" ) ;
167
178
0 commit comments