microsoft / microsoft/vscode-java-test
Expose lists of tests to be usable in inputs of task.json
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 340
- Forks
- 173
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 18
Beschreibung
I want to write a task like
"inputs": [
{
"id": "pickedTest",
"type": "command",
"command": "extension.yourextension.testPickerinCurrentFile",
}
],
"tasks": [{
"type": "shell",
"command": "mvn -Dtest=${input:pickedTest} test -e",
"label": "run test.."
}]
to be able to run any test(s) in current file or the entire workspace in my terminal instead of the debug console.
so if you exposed two commands
- one for tests or test classes in current file
- one for tests or test classes in entire workspace
with full classpath and/or methodname as output which can directly be fed to maven, I'd be grateful.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem task.json-Eingabebeispiel und den angeforderten Testbefehlen für current-file und workspace und prüfe anschließend, wie Maven Ausgaben für classpath, class und method-name akzeptiert. Fertig ist die Aufgabe, wenn beide Befehle Testauswahlen offenlegen, die in die Aufgabe eingesetzt und vom Terminal aus ausgeführt werden können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, typescript, vscode
- Bereich
- testing, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100