Add tests for NvChad via plenary #1727
griff-rees
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Adding a test suite could ease testing suggested contributions (and an excuse to learn more
lua).Given
plenaryis already included inNvChadand has atest_harnessmodule, that's probably the easiest option. There are examples in theplenaryrepository (seeTESTS_README.md) and this blog post. The post links to an exampleluanvimplugin template with example tests. Assuming that works, it should be pretty straightforward to add automation toGitHub Actionsfor pull requests.For completeness (though probably too tricky, at least initially): I'm unaware of a straightforward option to automate testing examples in Docusaurus but perhaps using
jestwith a shell-script could be part of the build? It would probably need filtering, butcodedownis a command linejavascripttool to extract code sections frommarkdownthat can then be piped to a scripting language likeluato run. I got the idea frommktestdocs: a customizable plugin for testing code inmkdocs, another documentation library popular forpythonpackages.All reactions