GitWorktreeWorkspacesTest
Tests
| Test |
Duration |
Result |
| creates a per-branch worktree with the commit checked out detached |
0.098s |
passed |
| different branches get different workspaces |
0.054s |
passed |
| recreates a workspace whose directory was deleted |
0.045s |
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.046s |
passed |
Standard output
Creating nstance of class de.hoennig.werkator.build.GitWorktreeWorkspacesTest
2026-09-03T16:01:38.405Z WARN 144 --- [-1230715683#173] d.h.w.build.GitWorktreeWorkspaces : removing broken workspace of branch main: /tmp/werkator-workspaces-test14445166739185231577/repo/.git/werkator/worktrees/main-0d6e4079e367