Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ on any failure — that's the form the GitHub Actions workflow uses.
Headline numbers as of this writing — Pester `It`-block counts for
the auto lanes (the manifest entries are coarser; each entry is a
test *file* that typically contains 3–10 individual assertions):
**373 pure** + **46 distro** = ~419 auto checks. The 4 **manual** entries
**373 pure** + **68 distro** = ~441 auto checks. The 4 **manual** entries
in the manifest aren't Pester `It` blocks — they're y/n prompts wired
through `Invoke-ManualTest` — bringing the suite total to ~423 checks. CI runs parse-check + pure on
through `Invoke-ManualTest` — bringing the suite total to ~445 checks. CI runs parse-check + pure on
every push to any branch; the distro lane runs on PRs and on `master`.
Manual is opt-in (never in CI); diag is on-demand.

Expand Down
2 changes: 1 addition & 1 deletion modules/Prune.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function Find-StaleWorktrees {
}

# ---- hostProjects (checkouts on the Windows side) ----
if ($ProfileSpec -and $ProfileSpec.ContainsKey('projects') -and $ProfileSpec.projects) {
if ($ProfileSpec -and $ProfileSpec.ContainsKey('projects')) {
foreach ($p in @($ProfileSpec.projects)) {
if (-not ($p -is [hashtable])) { continue }
$ptype = 'distro'
Expand Down
9 changes: 5 additions & 4 deletions tests/distro/Prune.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ AfterAll {
try {
Invoke-Claudearium -DistroName $script:distro -ProfilePath $script:profilePath `
-Args @{ Verb='project'; SubVerb='remove'; Arg=$script:proj; Force=$true } -AllowFail | Out-Null
} catch {}
Invoke-InDistro -Name $script:distro -User 'claude' -AllowFail -CaptureOutput `
-Command 'rm -rf /tmp/prune-test-remote.git /tmp/prune-test-seed' | Out-Null
Remove-Item -LiteralPath $script:profilePath -ErrorAction SilentlyContinue
} finally {
Invoke-InDistro -Name $script:distro -User 'claude' -AllowFail -CaptureOutput `
-Command 'rm -rf /tmp/prune-test-remote.git /tmp/prune-test-seed' | Out-Null
Remove-Item -LiteralPath $script:profilePath -ErrorAction SilentlyContinue
}
}

Describe 'prune detects orphaned sessions when the worktree dir is gone' -Tag 'distro' {
Expand Down
Loading