Skip to content

Commit

Permalink
chore: add directory info to test debug
Browse files Browse the repository at this point in the history
Add directory information to the test debug to help identify why
CI is ignore results.
  • Loading branch information
stevenh committed Dec 12, 2023
1 parent 212c066 commit adbe396
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class testDocuments extends Map<string, testDocument> {
super();

this.directory = temp.mkdirSync({prefix: 'vscode-groovy-lint-test-'});
debug(`testDocuments ${files} directory: ${this.directory}`);
debug(`testDocuments ${files} directory: "${this.directory}"`);

// Copy the test config, so it will be found.
const data = fs.readFileSync(join(__dirname, testsFolder, testConfig));
Expand All @@ -359,7 +359,7 @@ class testDocuments extends Map<string, testDocument> {
const doc = this.get(uri.fsPath);
if (!doc) {
// Not one of our documents.
debug(`Ignoring diagnostics changes "${uri.fsPath}"`);
debug(`Ignoring diagnostics changes "${uri.fsPath}" directory: "${this.directory}"`);
return;
}

Expand All @@ -376,7 +376,7 @@ class testDocuments extends Map<string, testDocument> {
const doc = this.get(e.document.uri.fsPath);
if (!doc) {
// Not one of our documents.
debug(`Ignoring document changes "${e.document.uri.fsPath}"`);
debug(`Ignoring document changes "${e.document.uri.fsPath}" directory: "${this.directory}"`);
return;
}

Expand Down Expand Up @@ -483,7 +483,6 @@ suite('VsCode GroovyLint Test Suite', async () => {

// Fix documents.
documentDetails.forEach(async (_, name) => {

test(`Fix "${name}"`, async function() {
const testDocs = new testDocuments(name);
// Total process requires three passes so triple the timeout.
Expand Down

0 comments on commit adbe396

Please sign in to comment.