caolan / caolan/nodeunit

node 0.9.1, reporters second param config error

Open
#302 0 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

## example code

`
var reporter = require('nodeunit').reporters.html;
reporter.run(path, secondparam);
`
- the 'secondparam' must config testSpec and testFullSpec , otherwise lead to a undefined error, but not all the reporters have the bug nodeunit version 0.9.1;

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the HTML reporter entry point shown in the example, reporter.run(path, secondparam), and compare how its second parameter is handled with the other reporters. Reproduce the undefined error using nodeunit 0.9.1 and verify that configurations containing testSpec and testFullSpec work without breaking reporters that do not have the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.