ワンクリックで
localappdata-test-isolation
Isolate tests for services that write under %LOCALAPPDATA% without touching the real user profile.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Isolate tests for services that write under %LOCALAPPDATA% without touching the real user profile.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
{what this skill teaches agents}
Build real git source, bare remote, and local clone fixtures for CopilotBooster integration tests.
{what this skill teaches agents}
Reusable WinForms pattern for textboxes that accept either a bare GitHub PR/Issue number or a full github.com URL.
Core conventions and patterns for this codebase
Kill a spawned Windows process tree from C# with a Win32 Job Object.
| name | localappdata-test-isolation |
| description | Isolate tests for services that write under %LOCALAPPDATA% without touching the real user profile. |
| domain | testing |
| confidence | high |
| source | earned |
Use this skill when a unit test exercises code that writes beneath %LOCALAPPDATA%, such as %LOCALAPPDATA%\CopilotBooster\models-cache.json.
LOCALAPPDATA environment value.LOCALAPPDATA before constructing the service under test.Dispose or finally.Environment.GetEnvironmentVariable("LOCALAPPDATA") first, then fall back to Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), so tests can redirect the location deterministically.tests\Services\CopilotModelsServiceTests.cs uses a per-test temp %LOCALAPPDATA% root and writes/reads CopilotBooster\models-cache.json there.
%LOCALAPPDATA% folder.Environment.GetFolderPath(SpecialFolder.LocalApplicationData) honors process-level LOCALAPPDATA changes on Windows.