今回は、PowerShellでもテストの話をしてみたいと思います。 PowerShellで使用できるテスティングフレームワークはいくつかあるのですが、その中でも先日紹介したChocolatecyからインストールできるBDDフレームのPesterを紹介します。 BDDはBehavior Driven Development ...
When you write a PowerShell script how do you truly know it worked? Do you define it to be successful when it doesn't throw an error? If so, what about those times ...
It's important to start tests with a clean session, especially when writing unit tests and creating mocks. Here's how to run Pester tests in a completely new PowerShell process. Writing unit tests in ...
この記事では、BDDスタイルのテストフレームワークである「Pester」を導入する方法を紹介します。 PowerShellスクリプト開発において、ユニットテスト1を活用することで、品質の高いスクリプトを開発できます。 以下では、Pester を導入する手順を説明します。
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する