Skip to content

Commit 82b39c1

Browse files
committed
Update MyModule.Tests.ps1
1 parent 259bbd0 commit 82b39c1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/tests/MyModule.Tests.ps1

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,37 @@ Write-Host "=== END DEBUG ===" -ForegroundColor Yellow
111111
$SkipValidate = -not $ValidatePath
112112
$SkipMain = -not $MainPath
113113

114+
# --- Debug Test to Show What's Happening ----------------------------------
115+
116+
Describe 'Debug Information' {
117+
It 'Should show path resolution details' {
118+
Write-Host "=== DEBUG TEST OUTPUT ===" -ForegroundColor Yellow
119+
Write-Host "PSScriptRoot: $PSScriptRoot" -ForegroundColor Cyan
120+
Write-Host "RepoRoot: $RepoRoot" -ForegroundColor Cyan
121+
Write-Host "ScriptsDir: $ScriptsDir" -ForegroundColor Cyan
122+
Write-Host "ScriptsDir exists: $(Test-Path $ScriptsDir)" -ForegroundColor Green
123+
Write-Host "ValidatePath: $ValidatePath" -ForegroundColor Cyan
124+
Write-Host "MainPath: $MainPath" -ForegroundColor Cyan
125+
Write-Host "ValidatePath exists: $(Test-Path $ValidatePath)" -ForegroundColor Green
126+
Write-Host "MainPath exists: $(Test-Path $MainPath)" -ForegroundColor Green
127+
Write-Host "SkipValidate: $SkipValidate" -ForegroundColor Yellow
128+
Write-Host "SkipMain: $SkipMain" -ForegroundColor Yellow
129+
130+
# List Scripts directory contents if it exists
131+
if (Test-Path $ScriptsDir) {
132+
Write-Host "Scripts directory contents:" -ForegroundColor Yellow
133+
Get-ChildItem $ScriptsDir -Name | ForEach-Object { Write-Host " $_" -ForegroundColor Gray }
134+
} else {
135+
Write-Host "Scripts directory not found!" -ForegroundColor Red
136+
}
137+
138+
Write-Host "=== END DEBUG TEST ===" -ForegroundColor Yellow
139+
140+
# This test always passes, it's just for debug output
141+
$true | Should -BeTrue
142+
}
143+
}
144+
114145
# --- VALIDATE.ps1 ----------------------------------------------------------
115146

116147
Describe 'VALIDATE.ps1 Tests' {

0 commit comments

Comments
 (0)