Skip to content

Add With-TestEnvironmentVariable helper - #613

Open
yourlastnamesoundslikeatypeofpasta wants to merge 1 commit into
mainfrom
codex/add-with-testenvironmentvariable-helper
Open

Add With-TestEnvironmentVariable helper#613
yourlastnamesoundslikeatypeofpasta wants to merge 1 commit into
mainfrom
codex/add-with-testenvironmentvariable-helper

Conversation

@yourlastnamesoundslikeatypeofpasta

Copy link
Copy Markdown
Owner

Summary

  • add With-TestEnvironmentVariable helper
  • update Telemetry, Test-Drift, and Send-TelemetryToLogAnalytics tests to use the helper

File Citations

  • tests/TestHelpers.ps1【F:tests/TestHelpers.ps1†L37-L59】
  • tests/Telemetry.Tests.ps1 excerpt showing new usage【F:tests/Telemetry.Tests.ps1†L14-L38】
  • tests/ConfigManagementTools/Test-Drift.Tests.ps1 excerpt showing new usage【F:tests/ConfigManagementTools/Test-Drift.Tests.ps1†L10-L19】
  • tests/Send-TelemetryToLogAnalytics.Tests.ps1 excerpt showing new usage【F:tests/Send-TelemetryToLogAnalytics.Tests.ps1†L8-L20】

Test Results

  • Invoke-Pester -Configuration (Import-PowerShellDataFile ./PesterConfiguration.psd1) failed: drive already exists【58fe14†L1-L7】

Codex couldn't run certain commands due to environment limitations. Consider configuring a setup script or internet access in your Codex environment to install dependencies.


https://chatgpt.com/codex/tasks/task_e_684788484878832cab72367110f92e27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant