GitWorktreeWorkspacesTest
Tests
| Test |
Duration |
Result |
| creates a per-branch worktree with the commit checked out detached |
0.950s |
passed |
| different branches get different workspaces |
0.186s |
passed |
| recreates a workspace whose directory was deleted |
0.065s |
passed |
| replaces a broken workspace directory that is not a worktree |
0.109s |
passed |
| reuses the worktree and switches it to a newer commit |
0.094s |
passed |
Standard output
Creating nstance of class de.hoennig.werkator.build.GitWorktreeWorkspacesTest
2026-09-03T12:34:56.722Z WARN 146 --- [-1084100201#168] d.h.w.build.GitWorktreeWorkspaces : removing broken workspace of branch main: /tmp/werkator-workspaces-test11464453716674059606/repo/.git/werkator/worktrees/main-0d6e4079e367