Make it clear which Kit is used in tests (#1971)

This commit is contained in:
Bob Brown 2021-07-09 10:21:59 -07:00 коммит произвёл GitHub
Родитель 1faf9cc82f
Коммит 6c1ab5c958
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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();
});