microsoft / microsoft/vscode-java-test

Support configurable presentation of project names in test runner

Offen
#1,770 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

ai-triaged enhancement gradle low-priority maven ui
Vorherrschende Sprache
TypeScript
Sterne
340
Forks
173
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
18

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit nachzuverfolgen, wie der VS Code-Test-Runner derzeit Maven- und Gradle-Projektnamen darstellt, wobei die vorgeschlagenen Quellen workspace-folder, filesystem-folder und project-name als Anforderungen verwendet werden. Lege die konfigurierbare Auswahl oder Reihenfolge fest und überprüfe anschließend, dass Projekte mit unterschiedlichen Benennungsquellen den ausgewählten Wert konsistent anzeigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, typescript, vscode
Bereich
developer-experience, testing
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.