Add line numbers in the output for faster spotting
未关闭
- 主要语言
- JavaScript
- 星标
- 1.9k
- 派生
- 359
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,跟踪 nodeunit foo.js 命令如何格式化失败信息,以及如何解析或显示 stack trace 行。根据 issue 中提出的 matching 方法,确认预期的行号格式。完成标准是测试失败时直接显示相关的源代码行号,而不要求用户检查完整的 stack trace。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli, testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100