Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Running tests can try to run non-tests as tests

Aperta
#1,480 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript, vscode
Ambito
devtools, testing

Direzione di ricerca

Riproduci il problema aprendo il repository codeql-coding-standards ed eseguendo la cartella c dal pannello dei test. Esamina il percorso di esecuzione delle cartelle e confronta il passaggio di --strict-test-discovery con il passaggio esplicito dei test individuati; il lavoro è completato quando i pack non di test non vengono tentati come test e i pack di test continuano a essere eseguiti.

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

Descrizione

bug VSCode

Describe the bug
When you have a folder that contains both multiple test packs and non-test packs, it will appear as runnable in the UI with the test packs a subpacks. When you run that folder it will also run the non-tests ibnside it as well.

Version
CodeQL extension version: 1.6.11
CodeQL CLI version: 2.10.3
Platform: linux x64

To reproduce
Open https://github.com/github/codeql-coding-standards/tree/next
Run the c folder in the testing pane. See codeql fail to find the extractor for a non-test folder.

Expected behavior

Only to try run the tests as tests.

Additional context

This can be seen by trying to run the c folder on https://github.com/github/codeql-coding-standards/tree/next

I think we either need to pass --strict-test-discovery when running or explicitly pass the set of tests rather than the folder.

Lingua principale
TypeScript
Stelle
539
Fork
240
Merge medio
2g 6h
PR unite (30g)
29

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.

Altre issue di github/vscode-codeql

Tutte le issue di github/vscode-codeql

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.