microsoft / microsoft/vscode-test

Unify index.ts files

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
316
Forks
73
Avg merge
1d 6h
Merged PRs (30d)
3

Description

Your test suite has 2 identical index.ts files, when you have 10 test suites this gets a bit old. Can you provide a way to unify the index.ts files so I only need one?

  • make it so that runTests can pass another parameter to the index.ts run function?
  • make it so I can customize the testsRoot path passed to the run function?

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 in the sample/test directory and compare the two identical index.ts files. Trace how runTests invokes the index.ts run function, focusing on passing an additional parameter and customizing testsRoot. Done means multiple test suites can share one index.ts without duplicating its contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
testing
Issue type
Feature
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.