microsoft / microsoft/vscode-java-test

Support configurable presentation of project names in test runner

Open
#1,770 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement gradle low-priority maven ui
Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 19h
Merged PRs (30d)
18

Description

When working with vscode workspaces having multiple folders/projects, it would be useful to have more options on how the project names are presented in the test runner. In a complex setup, you might have tens of folders/projects open as the same time with a mixture of gradle and maven projects. Organizations might have repository naming conventions resulting in lengthy names, which makes it challenging to navigate with the current behaviour in the test runner. In addition, maven and gradle project are currently presented differently.

Gradle project without project name defined in settings.gradle:
"project directory name" (might be lengthy in itself)

Gradle project with project name defined in settings.gradle:
"root project name-project directory name" (results in even lenghtier names)

Maven project:
"project artifact id"

Proposed behaviour:

Make it configurable which value should be presented.

  • vscode workspace file "folder.name"
  • file system folder name (typically same as the repository name)
  • maven project name or artifactId / gradle rootProjectName
  • a combination of the above

It would be especially nice to be able to choose the vscode workspace folder name, which allows for setting short context specific names.

An alternative is to introduce a default order of selection

  1. vscode workspace folder name if defined
  2. maven project name / gradle root project name if defined
  3. file system folder name

The maven plugin has a similar concept for the format of project node names.

Image Image

Contributor guide

Open the contributing guide

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 tracing how the VS Code test runner currently presents Maven and Gradle project names, using the proposed workspace-folder, filesystem-folder, and project-name sources as the requirements. Define the configurable selection or ordering, then verify that projects with different naming sources display the selected value consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.