Skip to content

🩹 [Patch]: Add debug and verbose logging for module import in test #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1045434
🩹 [Patch]: Enhance test output logging for module import and manifest…
MariusStorhaug Apr 24, 2025
2716573
🩹 [Patch]: Update module import command and enhance loader script log…
MariusStorhaug Apr 24, 2025
1d98f39
🩹 [Patch]: Add debug and verbose flags to module import for enhanced …
MariusStorhaug Apr 24, 2025
b2e9014
🩹 [Patch]: Set Debug and Verbose flags to true in action.yml and remo…
MariusStorhaug Apr 24, 2025
93dd7d5
🩹 [Patch]: Refactor debug and verbose handling in action.yml and PSMo…
MariusStorhaug Apr 24, 2025
496b963
🩹 [Patch]: Add CodeCoverage configuration and streamline debug/verbos…
MariusStorhaug Apr 24, 2025
191a830
🩹 [Patch]: Align formatting in Module.Configuration.ps1 for improved …
MariusStorhaug Apr 24, 2025
3b3b414
🩹 [Patch]: Comment out debug preference handling in module import tes…
MariusStorhaug Apr 24, 2025
d2ad465
🩹 [Patch]: Replace Write-Verbose with Write-Debug for consistent logg…
MariusStorhaug Apr 24, 2025
270bdf8
🩹 [Patch]: Add Debug configuration to Module.Configuration.ps1 for en…
MariusStorhaug Apr 24, 2025
0ac2ae6
🩹 [Patch]: Remove Debug configuration from Module.Configuration.ps1 a…
MariusStorhaug Apr 24, 2025
f50a534
🩹 [Patch]: Replace Write-Debug with Write-Verbose in loader.ps1 for c…
MariusStorhaug Apr 24, 2025
4594f8d
🩹 [Patch]: Add -Verbose and -Debug flags to Import-Module for enhance…
MariusStorhaug Apr 24, 2025
ec49684
🩹 [Patch]: Consolidate debug and verbose handling in PSModule.Contain…
MariusStorhaug Apr 24, 2025
2a8000d
🩹 [Patch]: Enhance module import test by temporarily setting Debug an…
MariusStorhaug Apr 24, 2025
77f5d6f
🩹 [Patch]: Simplify debug and verbose preference handling in module i…
MariusStorhaug Apr 24, 2025
5224213
🩹 [Patch]: Refactor module import test to manage debug and verbose pr…
MariusStorhaug Apr 24, 2025
237c89b
🩹 [Patch]: Refactor module import test to streamline Debug and Verbos…
MariusStorhaug Apr 24, 2025
ec616de
🩹 [Patch]: Refactor module import test to manage Debug and Verbose pr…
MariusStorhaug Apr 24, 2025
d9c8d5b
🩹 [Patch]: Set Debug and Verbose inputs to 'true' for consistent logg…
MariusStorhaug Apr 24, 2025
2d4834e
🩹 [Patch]: Update debug and verbose handling to use input parameters …
MariusStorhaug Apr 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🩹 [Patch]: Remove Debug configuration from Module.Configuration.ps1 a…
…nd adjust debug/verbose handling in PSModule.Tests.ps1 for cleaner execution
  • Loading branch information
MariusStorhaug committed Apr 24, 2025
commit 0ac2ae6ee1eabc1702adcaead3ee13c502e01b39
3 changes: 0 additions & 3 deletions scripts/tests/Module/Module.Configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
CodeCoverage = @{
Enabled = $true
}
Debug = @{
WriteDebugMessages = $true
}
Output = @{
Verbosity = 'Detailed'
}
Expand Down
14 changes: 7 additions & 7 deletions scripts/tests/Module/PSModule/PSModule.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Describe 'PSModule - Module tests' {
It 'The module should be importable' {
{
LogGroup 'Importing Module' {
# $currentDebugPreference = $DebugPreference
# $currentVerbosePreference = $VerbosePreference
# $DebugPreference = 'Continue'
# $VerbosePreference = 'Continue'
Import-Module -Name $moduleName -Force -Verbose -Debug
# $DebugPreference = $currentDebugPreference
# $VerbosePreference = $currentVerbosePreference
$currentDebugPreference = $DebugPreference
$currentVerbosePreference = $VerbosePreference
$DebugPreference = 'Continue'
$VerbosePreference = 'Continue'
Import-Module -Name $moduleName -Force
$DebugPreference = $currentDebugPreference
$VerbosePreference = $currentVerbosePreference
}
} | Should -Not -Throw
}
Expand Down
Loading