Make it clear which Kit is used in tests (#1971)
This commit is contained in:
Родитель
1faf9cc82f
Коммит
6c1ab5c958
|
@ -49,7 +49,7 @@ suite('Build', async () => {
|
|||
this.timeout(100000);
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
});
|
||||
|
|
|
@ -17,7 +17,7 @@ suite('[Debug/Launch interface]', async () => {
|
|||
cmakeTools = await CMakeTools.create(testEnv.vsContext, testEnv.wsContext);
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
expect(await vscode.commands.executeCommand('cmake.buildAll')).to.be.eq(0);
|
||||
|
|
|
@ -26,7 +26,7 @@ suite('[Environment Variables in Variants]', async () => {
|
|||
await clearExistingKitConfigurationFile();
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
|
|
|
@ -51,7 +51,7 @@ suite('Build using Kits and Variants', async () => {
|
|||
this.timeout(100000);
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
});
|
||||
|
|
|
@ -20,7 +20,7 @@ suite('[Debug/Launch interface using Kits and Variants]', async () => {
|
|||
await vscode.workspace.getConfiguration('cmake', vscode.workspace.workspaceFolders![0].uri).update('useCMakePresets', 'never');
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
expect(await vscode.commands.executeCommand('cmake.build')).to.be.eq(0);
|
||||
|
|
|
@ -29,7 +29,7 @@ suite('[Environment Variables in Variants]', async () => {
|
|||
await clearExistingKitConfigurationFile();
|
||||
|
||||
const kit = await getFirstSystemKit(cmakeTools);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await vscode.commands.executeCommand('cmake.setKitByName', kit.name);
|
||||
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
|
|
|
@ -50,7 +50,7 @@ suite('Build', async () => {
|
|||
|
||||
cmt = await CMakeTools.create(testEnv.vsContext, testEnv.wsContext);
|
||||
const kit = await getFirstSystemKit(cmt);
|
||||
console.log("Using following kit in next test: ", kit);
|
||||
console.log("Using following kit in next test: ", kit.name);
|
||||
await cmt.setKit(kit);
|
||||
testEnv.projectFolder.buildDirectory.clear();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче