Skip to content

fix(tests): just a bunch of fixes still more to go

e06cebd
Select commit
Loading
Failed to load commit list.
Draft

Add comprehensive Pester tests for PowerShell modules with streamlined test structure #5

fix(tests): just a bunch of fixes still more to go
e06cebd
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / PSScriptAnalyzer failed Sep 5, 2025 in 5s

9 new alerts including 1 error

New alerts in code changed by this pull request

  • 1 error
  • 8 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 198 in tests/common/Ensure/Ensure.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

File 'Ensure.Tests.ps1' uses ConvertTo-SecureString with plaintext. This will expose secure information. Encrypted standard strings should be used instead. Error test

File 'Ensure.Tests.ps1' uses ConvertTo-SecureString with plaintext. This will expose secure information. Encrypted standard strings should be used instead.

Check warning on line 6 in tests/common/ModuleUtils/Export-Types.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'ModulePath' is assigned but never used. Warning test

The variable 'ModulePath' is assigned but never used.

Check warning on line 7 in tests/common/ModuleUtils/Export-Types.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'TypeAcceleratorsClass' is assigned but never used. Warning test

The variable 'TypeAcceleratorsClass' is assigned but never used.

Check warning on line 9 in tests/common/ModuleUtils/Export-Types.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'TestModulePath' is assigned but never used. Warning test

The variable 'TestModulePath' is assigned but never used.

Check warning on line 110 in tests/common/Registry/Remove-RegistryKey.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'VerboseOutput' is assigned but never used. Warning test

The variable 'VerboseOutput' is assigned but never used.

Check warning on line 120 in tests/common/Registry/Remove-RegistryKey.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'VerboseOutput' is assigned but never used. Warning test

The variable 'VerboseOutput' is assigned but never used.

Check warning on line 5 in tests/common/Temp/Get-NamedTempFolder.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'TestTempPath' is assigned but never used. Warning test

The variable 'TestTempPath' is assigned but never used.

Check warning on line 164 in tests/common/Windows/Sync-Time.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'Result' is assigned but never used. Warning test

The variable 'Result' is assigned but never used.

Check warning on line 200 in tests/common/Windows/Sync-Time.Tests.ps1

See this annotation in the file changed.

Code scanning / PSScriptAnalyzer

The variable 'Result' is assigned but never used. Warning test

The variable 'Result' is assigned but never used.