GitWorktreeWorkspacesTest
Tests
| Test |
Duration |
Result |
| creates a per-branch worktree with the commit checked out detached |
0.865s |
passed |
| different branches get different workspaces |
0.071s |
passed |
| recreates a workspace whose directory was deleted |
0.044s |
passed |
| replaces a broken workspace directory that is not a worktree |
0.034s |
passed |
| reuses the worktree and switches it to a newer commit |
0.056s |
passed |
Standard output
Creating nstance of class de.hoennig.werkator.build.GitWorktreeWorkspacesTest
2026-09-03T10:11:01.336Z WARN 144 --- [-1139880288#168] d.h.w.build.GitWorktreeWorkspaces : removing broken workspace of branch main: /tmp/werkator-workspaces-test15287012514392218385/repo/.git/werkator/worktrees/main-0d6e4079e367