Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit032909d

Browse files
List crashing tests (#2357)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
1 parent2b4cd34 commit032909d

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
importwhichfrom"which";
55

66
constfailingTestsPath=path.join(import.meta.dirname,"failingTests.txt");
7+
constcrashingTestsPath=path.join(import.meta.dirname,"crashingTests.txt");
78

89
functionmain(){
910
constgo=which.sync("go");
@@ -24,13 +25,19 @@ function main() {
2425
}
2526
constfailRegex=/---FAIL:([\S]+)/gm;
2627
constfailingTests:string[]=[];
28+
constcrashingRegex=/^===(?:NAME|CONT)([\S]+)\n.*InternalError.*$/gm;
29+
constcrashingTests:string[]=[];
2730
letmatch;
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)

[8]ページ先頭

©2009-2025 Movatter.jp