microsoft / microsoft/vscode-test-cli

Support node:test as an alternative to mocha

Open
#105 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
53
Forks
16
Avg merge
10h 57m
Merged PRs (30d)
2

Description

I raised this at https://github.com/microsoft/vscode-test/issues/331, but I'm not sure if it actually belongs here, since it looks like the Mocha-related bits might be in this project.

Node has built-in testing that's very similar to Mocha, but also supports mocking:

https://nodejs.org/api/test.html

I tried switching an extensions tests over to this, and although they run, VS Code doesn't recognise them and reports 0 tests ran.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing an extension test suite using Node's built-in node:test module, then inspect how the CLI handles the Mocha-related test discovery and reporting. The work is done when those tests are discovered and VS Code no longer reports that 0 tests ran.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.