VSCode是否有一个选项可以为Java类“创建测试”?

huangapple go评论77阅读模式
英文:

Does VSCode have an option to "Create tests" for a java class?

问题

在IntelliJ IDEA Ultimate中,我有能力为Java类"创建测试"。

  • Visual Studio Code是否有类似的功能?任何扩展或内置功能。
  • 如果没有,我应该采取哪些步骤来为我的用途创建这样的选项?
英文:

In IntelliJ IDEA Ultimate, I have the ability to "Create tests" for a Java class.

  • Does VS Code have anything similar? Any extension or in-built functionality.
  • If not, what would be the steps I should follow to create such an option for my use?

答案1

得分: 3

截止到今天,VSCode内置了生成测试的操作。

您需要打开命令面板并选择"Source Action"。然后您将看到一个窗口,其中包含一些选项,其中之一将是"Generate Tests"。

英文:

As of today VSCode has in-built action to generate test.

You have to open Command Palette and select "Source Action". Then you'll be promted with window containing some options and one of them will be "Generate Tests".

答案2

得分: 0

似乎不是。我尝试过'Junit Testfile Generator'扩展,但它很粗糙。

英文:

It seems not. I have tried 'Junit Testfile Generator' extension, but it's rough.

huangapple
  • 本文由 发表于 2020年8月11日 02:09:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/63345734.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定