[英]Is there a way to associate Automated tests to Test Cases in Azure DevOps using VS Code?
I've been looking for an extension for VS Code that will allow the "Associate Test Case" functionality provided with Visual Studio IDE and I have had no luck.我一直在寻找 VS Code 的扩展,它将允许 Visual Studio IDE 提供的“关联测试用例”功能,但我没有运气。 Is there an extension that provides this functionality?
是否有提供此功能的扩展?
Visual Studio steps:视觉工作室步骤:
Screenshot:截屏:
Check this extension that I have created https://github.com/JanuszNowak/janono.ado.testcase.associate.cli it allows associating in automatic manner .检查我创建的这个扩展https://github.com/JanuszNowak/janono.ado.testcase.associate.cli它允许以自动方式关联。 For now this is CLI, that you can run as vs-code task.
现在这是 CLI,您可以将其作为 vs-code 任务运行。 Later I will create also dedicated Azure DevOps task.
稍后我还将创建专用的 Azure DevOps 任务。 Visual Studio is not needed to run automatic association.
运行自动关联不需要 Visual Studio。 Code sample:
代码示例:
namespace ExampleTestProject
{
[TestClass]
[janono.ado.testcase.associate.Organization("janono-pub")]
public class UnitTest1
{
[TestMethod]
[janono.ado.testcase.associate.TestCase(5)] //<---
public void TestMethod1()
{
//yours test method content
//...
//
}
}
}
As far as I know, currently there is no such extension provided in the visual studio code to support the "Associate Test Case" function.据我所知,目前Visual Studio代码中没有提供这样的扩展来支持“Associate Test Case”function。
You could add your request for this feature on vscode UserVoice site The product team would provide the updates if they view it.您可以在vscode UserVoice网站上添加对此功能的请求。如果产品团队查看更新,他们会提供更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.