microsoft / microsoft/vscode-java-test

Support configurable presentation of project names in test runner

Aperta
#1,770 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

ai-triaged enhancement gradle low-priority maven ui
Lingua principale
TypeScript
Stelle
340
Fork
173
Merge medio
1g 19h
PR unite (30g)
18

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando il modo in cui il test runner di VS Code presenta attualmente i nomi dei progetti Maven e Gradle, utilizzando le fonti proposte workspace-folder, filesystem-folder e project-name come requisiti. Definisci la selezione o l’ordinamento configurabile, quindi verifica che i progetti con diverse fonti per il nome visualizzino in modo coerente il valore selezionato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
developer-experience, testing
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.