caolan / caolan/nodeunit

Add line numbers in the output for faster spotting

Aperta
#145 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
1.9k
Fork
359
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.