<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>OviskoutaR</author_name>
  <author_url>https://blog.hatena.ne.jp/OviskoutaR/</author_url>
  <blog_title>三浦ノート</blog_title>
  <blog_url>https://www.k-pmpstudy.com/</blog_url>
  <categories>
    <anon>Pester</anon>
    <anon>PowerShell</anon>
    <anon>パソコン</anon>
    <anon>単体テスト</anon>
  </categories>
  <description>何らかのファイルを用いたPowershellスクリプトのテストをしたいとき、テスト実行中に独立な保存領域を使えると便利です。 PesterではTestDriveという機能があります。 参考：Isolating File Operations using the TestDrive | Pester $TestDriveという変数が、Pesterのテストの特定のブロックの実行中だけ有効なディレクトリへのパスを参照しています。 テストが実行完了するとそのディレクトリにテスト中に作成したファイルは自動で削除されます。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.k-pmpstudy.com%2Fentry%2F2022%2F03%2F27%2FpesterTestDrive&quot; title=&quot;Pesterでファイルを使うテストの時にテスト用ドライブを使う - 三浦ノート&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-27 14:07:21</published>
  <title>Pesterでファイルを使うテストの時にテスト用ドライブを使う</title>
  <type>rich</type>
  <url>https://www.k-pmpstudy.com/entry/2022/03/27/pesterTestDrive</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
