Skip to content

Commit 35c3075

Browse files
committed
Test: Add manual testing fixtures for selector behavior
Includes directory structure to test: - No conflicts (unique basenames) - Same basename conflicts - Dotfiles (single, double, triple leading dots) - Dotfile vs regular name conflicts - Special characters (middle dots, colons) - Alias differentiation - Deep nesting
1 parent f42f935 commit 35c3075

File tree

17 files changed

+64
-0
lines changed

17 files changed

+64
-0
lines changed

testdata/muxly-fixtures/.ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitkeep

testdata/muxly-fixtures/aliases/cfg-source/muxly/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/aliases/dev-source/muxly/.gitkeep

Whitespace-only changes.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Muxly Test Configuration
2+
# Use with: muxly --config testdata/muxly-fixtures/config.yaml
3+
# Run from repo root so $PWD resolves correctly
4+
5+
scan_dirs:
6+
# No conflicts - unique basenames
7+
- path: $PWD/testdata/muxly-fixtures/no-conflicts
8+
depth: 1
9+
10+
# Same basename conflicts (dev/src vs work/src)
11+
# Scan from dev/ and work/ directly to only get src
12+
- path: $PWD/testdata/muxly-fixtures/same-basename/dev
13+
depth: 1
14+
- path: $PWD/testdata/muxly-fixtures/same-basename/work
15+
depth: 1
16+
17+
# Dotfiles (.config, ..double-hidden, ...triple)
18+
- path: $PWD/testdata/muxly-fixtures/dotfiles
19+
depth: 1
20+
21+
# Dotfile vs regular conflicts (.settings vs settings)
22+
# Scan from hidden/ and visible/ directly
23+
- path: $PWD/testdata/muxly-fixtures/dotfile-conflicts/hidden
24+
depth: 1
25+
- path: $PWD/testdata/muxly-fixtures/dotfile-conflicts/visible
26+
depth: 1
27+
28+
# Special characters (dots, colons)
29+
- path: $PWD/testdata/muxly-fixtures/special-chars
30+
depth: 1
31+
32+
# Alias testing - same basename "muxly" with different aliases
33+
- path: $PWD/testdata/muxly-fixtures/aliases/cfg-source
34+
depth: 1
35+
alias: cfg
36+
37+
- path: $PWD/testdata/muxly-fixtures/aliases/dev-source
38+
depth: 1
39+
alias: dev
40+
41+
# Deep nesting - scan from deepest parent to only get project
42+
- path: $PWD/testdata/muxly-fixtures/deep-nesting/a/b/c
43+
depth: 1
44+
45+
session_layout:
46+
windows:
47+
- name: main
48+
cmd: ""
49+
50+
fallback_session:
51+
name: test-fallback
52+
path: ~/
53+
layout:
54+
windows:
55+
- name: main
56+
cmd: ""
57+
58+
settings:
59+
editor: vi
60+
tmux_base: 1
61+
default_depth: 1
62+
tmux_session_prefix: "[TMUX] "
63+
always_kill_on_last_session: false

testdata/muxly-fixtures/deep-nesting/a/b/c/project/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/dotfile-conflicts/hidden/.settings/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/dotfile-conflicts/visible/settings/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/dotfiles/...triple/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/dotfiles/..double-hidden/.gitkeep

Whitespace-only changes.

testdata/muxly-fixtures/dotfiles/.config/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)