Skip to content

Conversation

@esmuellert
Copy link
Owner

Summary

Reorganize test files to mirror the lua/codediff/ source directory structure for better discoverability and maintainability.

Changes

Pure file renames — no content changes.

Source directory Test directory
lua/codediff/core/ tests/core/
lua/codediff/ui/conflict/ tests/ui/conflict/
lua/codediff/ui/explorer/ tests/ui/explorer/
lua/codediff/ui/lifecycle/ tests/ui/lifecycle/
lua/codediff/ui/view/ tests/ui/view/
lua/codediff/ui/*.lua tests/ui/*.lua

Testing

Test runner (run_plenary_tests.sh) uses find tests -name '*_spec.lua' so it auto-discovers all files in subdirectories — no runner changes needed.

Move test files into tests/core/ and tests/ui/ subdirectories that
mirror the lua/codediff/ source structure:

- tests/core/: diff, dir, git, installer, args tests
- tests/ui/conflict/: conflict action tests
- tests/ui/explorer/: explorer, filter, staging tests
- tests/ui/lifecycle/: lifecycle management tests
- tests/ui/view/: view, diffget/diffput, autoscroll tests
- tests/ui/: core, merge_alignment, semantic_tokens tests

Pure renames, no content changes. Test runner auto-discovers via find.
@esmuellert esmuellert enabled auto-merge February 10, 2026 06:50
@esmuellert esmuellert merged commit 183d08b into main Feb 10, 2026
13 checks passed
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