小编gsg*_*l76的帖子

vstest.console,使用ClassName作为/ testcasefilter的exe

我正在寻找使用vstes.console.exe,任何帮助通过ClassName执行单元测试

我尝试过

/TestCaseFilter:"ClassName=ProgressTests"
Run Code Online (Sandbox Code Playgroud)

但抛出错误为

错误:没有测试与筛选器匹配,因为它包含一个或多个无效的属性(ClassName).指定包含有效属性的筛选表达式(TestCategory,Priority,FullyQualifiedName,Name),然后重试.

谢谢

vstest.console

7
推荐指数
2
解决办法
2987
查看次数

Terraform azurerm_virtual_machine_extension,使用 CustomScriptExtension 运行本地 PowerShell 脚本

如何在 terraform azurerm_virtual_machine_extension 中运行本地(不存储到 blob 存储帐户)PowerShell 脚本

文件夹有

  1. 主文件
  2. 安装.ps1

    资源“azurerm_virtual_machine_extension”“软件”{名称=“安装软件”resource_group_name=azurerm_resource_group.azrg.name virtual_machine_id=azurerm_virtual_machine.vm.idpublisher=“Microsoft.Compute”type=“CustomScriptExtension”type_handler_version=“1.9”

      settings = <<SETTINGS
        { 
          "commandToExecute": "powershell -ExecutionPolicy Unrestricted -File \"install.ps1\""
        } 
        SETTINGS
    } 
    
    Run Code Online (Sandbox Code Playgroud)

    但失败了

    [
            {
                "code": "ComponentStatus/StdOut/succeeded",
                "level": "Info",
                "displayStatus": "Provisioning succeeded",
                "message": "Windows PowerShell \r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n"
            },
            {
                "code": "ComponentStatus/StdErr/succeeded",
                "level": "Info",
                "displayStatus": "Provisioning succeeded",
                "message": "The argument 'install.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.\r\n" …
    Run Code Online (Sandbox Code Playgroud)

powershell terraform

1
推荐指数
1
解决办法
2635
查看次数

标签 统计

powershell ×1

terraform ×1

vstest.console ×1