Expose lists of tests to be usable in inputs of task.json

未关闭
#1,405 13 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java, typescript, vscode
领域
testing, tooling

调研方向

从 task.json 输入示例以及所请求的 current-file 和 workspace 测试命令开始,然后检查 Maven 如何接受 classpath、class 和 method-name 输出。完成的标准是两个命令都能提供可替换到 task 中并从终端运行的测试选择。

由索引模型根据 Issue 内容生成。

描述

ai-triaged enhancement maven test-discovery

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.

主要语言
TypeScript
星标
340
派生
173
平均合并
1 天 2 小时
30 天内合并 PR
17

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-java-test 的其他 Issue

查看 microsoft/vscode-java-test 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。