Announcing ‘mini.test’

announce
reddit
Test Neovim plugins with parametrization, screen tests, and more
Author

Evgeni Chasnovski

Published

July 1, 2022

Originally posted on Reddit

Hello, Neovim users!

I am thrilled to announce mini.test - module of mini.nvim with framework for writing extensive Neovim plugin tests. It is very feature-rich, which makes me both proud and not proud. It took me too long to implement everything I wanted to see in testing framework and the outcome is too big for my taste (it is ~80% larger by line count than the next largest module). But… it is awesome.

It has:

Sources for more information:

With release of this module I hope to finally fully pay this plugin’s technical debt. Previously it had no tests which slowed down bug fixes and feature implementations. Now, judging by size, it has three times bigger tests than actual code (granted, most of it is screenshots). Now I hope to work on more tightly focused modules.

Neovim plugin authors, try it and tell me what you think. Either here, in dedicated issue, or in Discussions. Thanks!