caolan / caolan/nodeunit

Asserts not counted by reporter

Open
#47 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the test.ok(true) example with assert.ok(true) and the reporter behavior described in the issue. Trace how nodeunit counts assertions, then determine whether vanilla assert and should.js can be observed consistently. Done means the supported behavior is implemented or clearly documented with coverage for both assertion styles.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.