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

Test explorer doesn't show suite correctly

Aperta
#2,293 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Riprodurre il problema seguendo i passaggi forniti per il progetto .NET Standard, con gli esempi Jest o Jasmine del report, e analizzare il modo in cui Visual Studio Test Explorer interpreta i nomi file::suite::test. Il lavoro è completato quando l'explorer conserva la gerarchia Project > File > Suite > Test, inclusi i nomi dei file contenenti punti, i nomi delle suite e i test di primo livello.

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

Descrizione

Expected Behavior

Javascript tests are displayed in VS Test Explorer by Project > File > Suite > Test

Actual Behavior

The tests output shows the details of file::suite::test

Creating Test Case:tests\FormatServiceTests.js::FormatService - format()::date
Creating Test Case:tests\XAxisTests.js::global::XAxisService.axis() - Index Values

But the test explorer seems to split on the last . and shows js instead of FormatService - format()
and XAxisService > axis() - Index Values instead of global > XAxisService.axis() - Index Values

image
image

These examples are in Jest (26.4.2), but I've seen the same issue trying Jasmine.

FormatServiceTests is using

describe("FormatService - format()", () => {
    test("date", () => {
        ...
    });
});

while
XAxisTests is a top level test

test("XAxisService.axis() - Index Values", () => {
    ...
});
  • NTVS Version: 1.5.20902.1 Commit Hash:b474efcb6f92db52a8f8e2e6a8cb9648476885cc
  • Visual Studio Version: 16.8.0 Preview 3.2
  • Node.js Version: 10.15.0
Steps to reproduce
  1. Create a .netstandard project following https://docs.microsoft.com/en-us/visualstudio/javascript/unit-testing-javascript-with-visual-studio?view=vs-2019#unit-test-net-core-and-net-standard
  2. Add test files into the tests folder and rebuild the project
Lingua principale
C#
Stelle
1.8k
Fork
355
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 microsoft/nodejstools

Tutte le issue di microsoft/nodejstools

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.