connor4312 / connor4312/nodejs-testing
Subtests not reported as expected.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 67
- Forks
- 15
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When writing a test with subtests, the test explorer doesn't list the subtests and the subtests are not reported in the test results. Furthermore, when an error occurs the message that appears in the editor will just say some count of subtests failed, rather than specifying which one failed and what error occurred.
However when running the same tests directly with Node, a full report is generated that lists all the subtests along with timings, success/failure, and all full error messages will be printed.
As a result, it is at times necessary to run tests in the terminal rather than the test runner in order to debug them properly.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, einen Test mit Untertests im VS Code-Test-Explorer zu reproduzieren, und vergleiche dann seine Ausgabe mit demselben Testlauf direkt über Node. Als abgeschlossen gilt die Aufgabe, wenn der Explorer Untertests auflistet, deren Laufzeiten und Erfolg oder Fehlschlag meldet und den fehlgeschlagenen Untertest sowie die vollständige Fehlermeldung im Editor anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- nodejs, typescript, vscode
- Bereich
- developer-experience, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100