Skip to content

test: improve coverage - #9

Merged
sand4rt merged 1 commit into
mainfrom
improve-tests
Apr 17, 2026
Merged

sand4rt merged 1 commit into
mainfrom
improve-tests

Conversation

@sand4rt

@sand4rt sand4rt commented Apr 17, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 17, 2026 08:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.lua suite and adds new cursor-movement/autocmd cases.
  • Adds a new test_integrations.lua suite 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 thread tests/scripts/init_with_zen_small.lua
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 },
},
})

@sand4rt
sand4rt merged commit 5770f43 into main Apr 17, 2026
5 checks passed
@sand4rt
sand4rt deleted the improve-tests branch April 17, 2026 08:49
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.

2 participants