Skip to content

More integration tests#101

Merged
narnaud merged 5 commits intomainfrom
more-tests
Mar 16, 2026
Merged

More integration tests#101
narnaud merged 5 commits intomainfrom
more-tests

Conversation

@narnaud
Copy link
Owner

@narnaud narnaud commented Mar 15, 2026

test: add integration tests for gl init

Tests all preconditions (duplicate branch, no remotes, invalid name)
and happy paths (default name, custom name, detached HEAD, untracked branch).

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com


chore(claude): add more permissions


test(status): comprehensive integration tests for gl status

Covers: preconditions (non-git repo, detached HEAD, no upstream),
empty branch, working changes (staged/unstaged/untracked/clean),
single and multiple woven branches with graph symbols, stacked
branches (│├─ ││ connectors), co-located branches, empty branch at
upstream base, loose commits, upstream-tracking exclusion, remote
indicators (✓ ↑ ✗), hidden branches (default/custom/empty pattern,
--all), upstream ahead (⏫), context commits, -f files flag, and
CWD-relative file path display.

Adds helpers: commit_file_in (commit to arbitrary repo), describe
(print test name as each case runs).

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com


test: add describe calls to all integration test files

Replaces # ── Test: comments with describe() calls so each test case
name is printed as it runs, consistent with test_status.sh.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com


docs: only update docs on release, have the main doc on /latest

There are now 2 docs:

narnaud and others added 5 commits March 15, 2026 19:37
Tests all preconditions (duplicate branch, no remotes, invalid name)
and happy paths (default name, custom name, detached HEAD, untracked branch).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers: preconditions (non-git repo, detached HEAD, no upstream),
empty branch, working changes (staged/unstaged/untracked/clean),
single and multiple woven branches with graph symbols, stacked
branches (│├─ ││ connectors), co-located branches, empty branch at
upstream base, loose commits, upstream-tracking exclusion, remote
indicators (✓ ↑ ✗), hidden branches (default/custom/empty pattern,
--all), upstream ahead (⏫), context commits, -f files flag, and
CWD-relative file path display.

Adds helpers: commit_file_in (commit to arbitrary repo), describe
(print test name as each case runs).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces # ── Test: comments with describe() calls so each test case
name is printed as it runs, consistent with test_status.sh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There are now 2 docs:
- https://narnaud.github.io/git-loom/ documentation of the current
  version
- https://narnaud.github.io/git-loom/latest/ documentation of the
  current main
They are updated automatically.
@narnaud narnaud merged commit f8b43a6 into main Mar 16, 2026
4 checks passed
@narnaud narnaud deleted the more-tests branch March 16, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant