Repository navigation
test: improve coverage - #9
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors and expands the test suite to improve coverage around zen side-buffer behavior, adding explicit integration-focused scenarios and additional autocmd-driven behaviors.
Changes:
- Consolidates prior “opening”/“closing” startup+quit coverage into a new
test_autocmd.luasuite and adds new cursor-movement/autocmd cases. - Adds a new
test_integrations.luasuite to validate behavior when opening/closing left/right integrations (Fyler, Neotest summary). - Introduces a “small screen” test init (
init_with_zen_small.lua) and extends the main test init to set up additional deps (Fyler/Neotest).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_opening.lua | Removed (coverage moved into tests/test_autocmd.lua). |
| tests/test_closing.lua | Removed (coverage moved into tests/test_autocmd.lua). |
| tests/test_autocmd.lua | New consolidated autocmd-focused tests, plus new “no space” and cursor-entry prevention cases. |
| tests/test_integrations.lua | New integration tests for left/right side integrations (Fyler/Neotest summary). |
| tests/scripts/init_with_zen.lua | Adds Fyler/Neotest setup to support new integration tests. |
| tests/scripts/init_with_zen_small.lua | New small-screen init for “not enough space” coverage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+44
to
+52
| Helpers.expect.layout(child, { | ||
| type = "row", | ||
| children = { | ||
| { type = "leaf", filetype = "zen-left", buftype = "nofile", width = 46, height = 50 }, | ||
| { type = "leaf", filetype = "", buftype = "", width = 142, height = 50 }, | ||
| { type = "leaf", filetype = "neotest-summary", buftype = "nofile", width = 50, height = 50 }, | ||
| }, | ||
| }) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.