microsoft / microsoft/vscode-test
Run VSCode Integration Tests through typescript files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 316
- Forks
- 73
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 3
Description
We currently use Mocha to run all of our tests through the out/ folder within our repository. We want to switch to using ts-node in conjunction with mocha so that we can run the tests and collect coverage information (with NYC) through the typescript files, rather than compiled javscript. This works fine for unit tests, but it doesn't seem to work with vscode-integration tests. I believe due to the way the extension development host is launched, it is looking specifically for a javascript extension so can't interpret our typescript files.
Is it possible to change that so that we are able to also run vscode-integration tests through the typescript files? Thanks!
Contributor guide
No contributing guide indexed for this repository
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
Start by tracing the Mocha and ts-node setup used for unit tests, then compare how the VS Code integration tests launch the extension development host from the out/ folder. Determine where the host requires JavaScript and what test entry point controls that launch. Done means integration tests run from TypeScript files and NYC can collect their coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100