microsoft / microsoft/nodejstools
Issues running tests with mocha
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 355
- PR merge metrics
- No merged PRs in 30d
Description
I'm using mocha package(v 3.2) for running my tests using Visual Studio tools for Nodejs extension for VS 2015(v 1.2) and I've observed that that if My test name contains [] chars, the test doesn't even enter the first line but returns prematurely and marking it as passed.
Like: it("[nativeApi] tests")
If I remove [] from the test name it works as expected.
This used to work several months back and not sure if this is an issue with the latest version of mocha.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with Mocha 3.2 in the Visual Studio Tools for Node.js extension for VS 2015, comparing a test named "[nativeApi] tests" with one that has no brackets. Trace the test runner behavior and confirm it is fixed when the bracketed test executes its body instead of returning as passed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- developer-experience, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100