caolan / caolan/nodeunit

support escape character for white space in running single test case with option -t or -f

Open
#210 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

in case of having test cases like `exports['test case']`

I am not able to use either `-f` or `-t`
`nodeunit tc.js -t 'test case'` as space is delimiter and it looks for folder instead
`Error: ENOENT, stat '/Users/xxxxx/test/case'`

Please let me know if there is existing options to escape , and please support `\` as espace char white space. quite trivial but I think helpful.Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the nodeunit command-line entry point used by `nodeunit tc.js -t 'test case'` and trace how the `-t` and `-f` arguments are parsed. Reproduce the reported whitespace failure, then verify that an escaped space selects `exports['test case']` rather than being treated as a path delimiter.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.