Skip to content

Commit b18a1ec

Browse files
committed
Renamed the CI tests
1 parent 0f6ae35 commit b18a1ec

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

scripts/run-integration-tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ try {
3535
let grepPattern;
3636
switch (testType) {
3737
case 'standard':
38-
grepPattern = '"Standard Workflow Integration Test Suite"';
38+
grepPattern = '"Standard Workspace Test Suite"';
3939
break;
4040
case 'git':
41-
grepPattern = '"Git Workflow Integration Test Suite"';
41+
grepPattern = '"West Git Workspace Test Suite"';
4242
break;
4343
case 'all':
4444
default:
45-
grepPattern = '"Workflow Integration Test Suite"';
45+
grepPattern = '"Workspace Test Suite"';
4646
break;
4747
}
4848

src/test/workflow-integration.test.ts renamed to src/test/standard-workspace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { UIMockInterface, MockInteraction } from "./ui-mock-interface";
4949
* - Clear intent with descriptive interactions
5050
*/
5151

52-
suite("Standard Workflow Integration Test Suite", () => {
52+
suite("Standard Workspace Test Suite", () => {
5353
let testWorkspaceDir: string;
5454
let originalWorkspaceFolders: readonly vscode.WorkspaceFolder[] | undefined;
5555

src/test/workflow-git-integration.test.ts renamed to src/test/west-git-workspace.test.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { UIMockInterface, MockInteraction } from "./ui-mock-interface";
3838
* - Clean separation of concerns
3939
*/
4040

41-
suite("Git Workflow Integration Test Suite", () => {
41+
suite("West Git Workspace Test Suite", () => {
4242
let testWorkspaceDir: string;
4343
let originalWorkspaceFolders: readonly vscode.WorkspaceFolder[] | undefined;
4444

@@ -100,7 +100,7 @@ suite("Git Workflow Integration Test Suite", () => {
100100
}
101101
});
102102

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 () {
104104
this.timeout(1800000);
105105

106106
console.log("🚀 Starting git workspace test...");
@@ -130,7 +130,18 @@ suite("Git Workflow Integration Test Suite", () => {
130130

131131
await monitorWorkspaceSetup("git workspace");
132132

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...");
134145
// Prime the mock interface for project addition interactions
135146
gitUiMock.primeInteractions([
136147
{ type: 'opendialog', value: path.join(testWorkspaceDir, "zephyr-example.git", "app"), description: 'Select app folder' }
@@ -139,7 +150,7 @@ suite("Git Workflow Integration Test Suite", () => {
139150
result = await vscode.commands.executeCommand("zephyr-ide.add-project");
140151
assert.ok(result, "Project addition should succeed");
141152

142-
console.log("🔨 Step 3: Adding build configuration with custom board...");
153+
console.log("🔨 Step 4: Adding build configuration with custom board...");
143154
// Prime the mock interface for build configuration interactions
144155
gitUiMock.primeInteractions([
145156
{ type: 'quickpick', value: 'select other folder', description: 'Select other folder for boards' },
@@ -161,7 +172,7 @@ suite("Git Workflow Integration Test Suite", () => {
161172
result = await vscode.commands.executeCommand("zephyr-ide.add-build");
162173
assert.ok(result, "Build configuration should succeed");
163174

164-
console.log("⚡ Step 4: Executing build with custom board...");
175+
console.log("⚡ Step 5: Executing build with custom board...");
165176
result = await vscode.commands.executeCommand("zephyr-ide.build");
166177
assert.ok(result, "Build execution should succeed");
167178

0 commit comments

Comments
 (0)