microsoft / microsoft/TypeScript

Move test files and baselines into subdirectories

Aperta
#42,496 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Experience Enhancement Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

Bug Report

VSCode can't really handle the number of files in the tests/cases/compiler directory (5386) or tests/baselines/reference (36655). It makes working with those directories very awkward!

There's plenty of scope for subdirectories, e.g.

anyAndUnknownHaveFalsyComponents.ts
anyAsReturnTypeForNewOnCall.ts
anyDeclare.ts
anyIdenticalToItself.ts
anyIndexedAccessArrayNoException.ts
anyInferenceAnonymousFunctions.ts
anyIsAssignableToObject.ts
anyIsAssignableToVoid.ts
anyMappedTypesError.ts
anyPlusAny1.ts
argsInScope.ts
arguments.ts
argumentsAsPropertyName.ts
argumentsAsPropertyName2.ts
argumentsBindsToFunctionScopeArgumentList.ts
argumentsObjectCreatesRestForJs.ts
argumentsObjectIterator01_ES5.ts
argumentsObjectIterator01_ES6.ts
argumentsObjectIterator02_ES5.ts
argumentsObjectIterator02_ES6.ts
argumentsObjectIterator03_ES5.ts
argumentsObjectIterator03_ES6.ts
argumentsReferenceInConstructor1_Js.ts
argumentsReferenceInConstructor2_Js.ts
argumentsReferenceInConstructor3_Js.ts
argumentsReferenceInConstructor4_Js.ts
argumentsReferenceInConstructor5_Js.ts
argumentsReferenceInConstructor6_Js.ts
argumentsReferenceInConstructor7_Js.ts
argumentsReferenceInMethod1_Js.ts
argumentsReferenceInMethod2_Js.ts
argumentsReferenceInMethod3_Js.ts
argumentsReferenceInMethod4_Js.ts
argumentsReferenceInMethod5_Js.ts
argumentsReferenceInMethod6_Js.ts
argumentsReferenceInMethod7_Js.ts
argumentsUsedInObjectLiteralProperty.ts
arithAssignTyping.ts
arithmeticOnInvalidTypes.ts
arithmeticOnInvalidTypes2.ts
arityErrorRelatedSpanBindingPattern.ts
arrayAssignmentTest1.ts
arrayAssignmentTest2.ts
arrayAssignmentTest3.ts
arrayAssignmentTest4.ts
arrayAssignmentTest5.ts
arrayAssignmentTest6.ts

Could be in these subdirectories

any
arguments
arithmetic
arity
arrayAssignment

I think that would cut down the number of subdirectories to something like 1000 which is much more reasonable. It could be a mostly automated change since the tests are named nicely and in most cases you could just group them by their first word (or maybe even first 1/2 letters?).

🔎 Search Terms

large number many files test cases baselines

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia esaminando le ipotesi relative alla struttura e ai percorsi intorno a tests/cases/compiler e tests/baselines/reference, incluso il modo in cui i test del compilatore individuano le proprie baseline. Raggruppa i file di test e le baseline corrispondenti in sottodirectory coerenti, quindi verifica che la suite di test del compilatore continui a individuare i test e corrisponda a ogni baseline dopo lo spostamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
testing
Tipo di issue
Refactoring
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.