您可以在 Testdrive 中创建复杂的 CSV 文件吗?
Can you create a complex CSV file inside the Testdrive?
我只想问一下,在为函数创建 Pester 测试时是否可以在 Testdrive 中创建一个复杂的 csv 文件?从某种意义上说它很复杂,它有 13 headers 并且没有空值?
您可以在 testdrive:\ 中创建任何类型的文件(就像任何类型的 PSDrive),尽管它当然只能在使用它的上下文或描述块中暂时可用。
TestDrive is a PowerShell PSDrive for file activity limited to the
scope of a single Describe or Context block.
我只想问一下,在为函数创建 Pester 测试时是否可以在 Testdrive 中创建一个复杂的 csv 文件?从某种意义上说它很复杂,它有 13 headers 并且没有空值?
您可以在 testdrive:\ 中创建任何类型的文件(就像任何类型的 PSDrive),尽管它当然只能在使用它的上下文或描述块中暂时可用。
TestDrive is a PowerShell PSDrive for file activity limited to the scope of a single Describe or Context block.