Skip to content

test: add functional tests, using the Nvim framework - #3369

Open
alex-courtis wants to merge 230 commits into
masterfrom
test-neovim-functionaltest
Open

alex-courtis wants to merge 230 commits into
masterfrom
test-neovim-functionaltest

Conversation

@alex-courtis

@alex-courtis alex-courtis commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Big one, sorry to dump it on you @gegoune

We've had too many regressions recently (combinations of configuration settings), also refactors are becoming problematic to verify. Unit tests are not likely to help, as the regressions have been mainly "end to end", hence functional tests using the Nvim framework.

This is just a start: plumbing and framework are in place, as well as 111 tests. Many, many more are required. An option may be to create a project board, similar to multi-instance, and put out a call for volunteers.

I'd be eternally grateful if you could:

  • Look over the readme
  • Run the tests locally
  • Run a live environment and dump a screen to verify
  • Try out the quick start

Absolute minimum required changes to production code:

Also added, can be backed out:

  • log.stack for finding codepaths to test
  • millis added to log lines

PRs already merged:

@alex-courtis
alex-courtis force-pushed the test-neovim-functionaltest branch 6 times, most recently from 6c91cc1 to 70d6589 Compare November 3, 2026 01:18
@alex-courtis
alex-courtis force-pushed the test-neovim-functionaltest branch 2 times, most recently from 1c987d7 to 8ae22c6 Compare November 15, 2026 23:42
@alex-courtis
alex-courtis changed the base branch from master to 3379-functest-api-nodes-as-classes November 16, 2026 01:56
@alex-courtis
alex-courtis changed the base branch from 3379-functest-api-nodes-as-classes to 3379 November 16, 2026 01:56
@alex-courtis
alex-courtis force-pushed the test-neovim-functionaltest branch from ac105ac to b06d5f1 Compare November 16, 2026 01:57
Comment thread doc/nvim-tree-lua.txt
• {use_system_clipboard}? (`boolean`, default: `true`) Use the system
clipboard for copy/paste. Copied text will be
stored in registers `+` (system), otherwise,
it will be stored in `1` and `"`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

found during testing

Comment thread scripts/check-nvim-src.sh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

extracted common code

Comment thread .luarc.json
"$VIMRUNTIME/lua/vim",
"${3rd}/luv/library"
"${3rd}/luv/library",
"$DIR_NVIM_SRC/test",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a problem. If you don't have Nvim source available, luals cannot parse test code.

@alex-courtis
alex-courtis marked this pull request as ready for review November 19, 2026 03:10
@alex-courtis
alex-courtis requested a review from gegoune November 19, 2026 03:10
Base automatically changed from 3379 to master November 19, 2026 03:12
@alex-courtis
alex-courtis force-pushed the test-neovim-functionaltest branch from 9e71bef to 23ef349 Compare November 19, 2026 03:12
@alex-courtis
alex-courtis force-pushed the test-neovim-functionaltest branch from 23ef349 to 350376c Compare November 19, 2026 03:14
@alex-courtis alex-courtis changed the title test: draft nvim functional testing test: add functional tests, using the Nvim framework Nov 19, 2026
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