caolan / caolan/nodeunit

Add line numbers in the output for faster spotting

Offen
#145 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1.9k
Forks
359
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently the only way to see the line number is to look at the stack trace. It takes some time for human eye to spot the line number from the mess so it would be a great addition if nodeunit could display the line number directly.

An idea how to accomplish this: loop through the lines of the stack trace until you hit the file that was specified in the command line "nodeunit foo.js". When you hit that line, use regular expression such as `line.exec(/(\d):\d+$/)` to match it.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.