caolan / caolan/nodeunit

Asserts not counted by reporter

未关闭
#47 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
1.9k
派生
359
PR 合并指标
30 天内没有已合并 PR

描述

I'm curious why vanilla asserts don't get reported by nodeunit? Meaning test.ok(true) counts but assert.ok(true) doesn't get counted. Am I doing something wrong or do I need to hack something? I'd like to use something like should.js but I'd like nodeunit to track the assertions.

Thanks for any advice.

-Mike

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先比较 test.ok(true) 示例与 assert.ok(true),以及 issue 中描述的 reporter 行为。跟踪 nodeunit 如何统计 assertions,然后确定是否可以一致地观察 vanilla assert 和 should.js。完成的标准是:已实现或明确记录所支持的行为,并且涵盖两种 assertion 风格。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
testing
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。