简体   繁体   English

有没有办法使用 VS 代码将自动化测试与 Azure DevOps 中的测试用例相关联?

[英]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:视觉工作室步骤:

  1. Open Test Explorer打开测试资源管理器
  2. Right click on a Test Case右键单击测试用例
  3. Click on Associate To Test Case单击关联到测试用例

Screenshot:截屏:

VS 关联到测试用例

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.

相关问题 连接到Azure Devops私有NuGet在vs代码中 - Connecting to an Azure Devops private NuGet in vs code 在Azure Pipeline上找不到VS Code Extension测试 - VS Code Extension tests not found on Azure Pipeline 尝试使用 VS Code 从 Azure DevOps 项目克隆存储库时出错 - Getting an error while trying to clone a repo from Azure DevOps project using VS Code VS Code:有什么方法可以将我的调试会话与特定终端相关联? - VS Code: Is there some way to associate my debug session to a specific terminal? 使用 VS Code 运行 ASP.Net 核心应用程序的 NUnit 测试用例 - Run NUnit test cases of ASP .Net core application using VS Code VS Code中的Angular:是否有任何自动重命名方法? - Angular in VS Code: Is it there any automated way to rename things? VS 代码测试资源管理器运行按钮不适用于 Class 中的测试 - VS Code Test Explorer run button not working for tests in a Class 有没有办法永久隐藏 vs 代码测试资源管理器? - Is there a way hide the vs code test explorer permanently? Jasmine Test Explorer 在 VS Code 中显示了 typescript jasmine 测试 - Jasmine Test Explorer is showing typescript jasmine tests in VS Code 如何在 VS Code 中运行测试和调试 Google Test 项目? - How to run tests and debug Google Test project in VS Code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM