Skip to content

Commit 032909d

Browse files
List crashing tests (#2357)
Co-authored-by: Daniel Rosenwasser <[email protected]>
1 parent 2b4cd34 commit 032909d

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,4 @@ custom-gcl.hash
199199

200200
!internal/fourslash/_scripts/failingTests.txt
201201
!internal/fourslash/_scripts/manualTests.txt
202+
!internal/fourslash/_scripts/crashingTests.txt
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TestCompletionsAfterJSDoc
2+
TestCompletionsImport_require_addToExisting
3+
TestCompletionsUniqueSymbol_import
4+
TestFindReferencesBindingPatternInJsdocNoCrash1
5+
TestFindReferencesBindingPatternInJsdocNoCrash2
6+
TestGetOccurrencesIfElseBroken
7+
TestImportNameCodeFix_importType8
8+
TestJsdocLink2
9+
TestJsdocLink3
10+
TestJsdocLink6
11+
TestQuickInfoAlias
12+
TestQuickInfoBindingPatternInJsdocNoCrash1

internal/fourslash/_scripts/updateFailing.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import path from "path";
44
import which from "which";
55

66
const failingTestsPath = path.join(import.meta.dirname, "failingTests.txt");
7+
const crashingTestsPath = path.join(import.meta.dirname, "crashingTests.txt");
78

89
function main() {
910
const go = which.sync("go");
@@ -24,13 +25,19 @@ function main() {
2425
}
2526
const failRegex = /--- FAIL: ([\S]+)/gm;
2627
const failingTests: string[] = [];
28+
const crashingRegex = /^=== (?:NAME|CONT) ([\S]+)\n.*InternalError.*$/gm;
29+
const crashingTests: string[] = [];
2730
let match;
2831

2932
while ((match = failRegex.exec(testOutput)) !== null) {
3033
failingTests.push(match[1]);
3134
}
35+
while ((match = crashingRegex.exec(testOutput)) !== null) {
36+
crashingTests.push(match[1]);
37+
}
3238

3339
fs.writeFileSync(failingTestsPath, failingTests.sort((a, b) => a.localeCompare(b, "en-US")).join("\n") + "\n", "utf-8");
40+
fs.writeFileSync(crashingTestsPath, crashingTests.sort((a, b) => a.localeCompare(b, "en-US")).join("\n") + "\n", "utf-8");
3441
}
3542

3643
main();

0 commit comments

Comments
 (0)