Closed nabekou29 closed 3 months ago
This commit includes several changes to improve the testing infrastructure:
Refactor the tests in command_spec.lua to use a table-driven approach, making it easier to add new test cases in the future.
command_spec.lua
Add a new helper function clean_plugin in helper.lua to reload the plugin before each test.
clean_plugin
helper.lua
Add a new GitHub Actions workflow in .github/workflows/test.yaml to run the tests on every push and pull request.
.github/workflows/test.yaml
Make a minor change in the Makefile to use the -v (verbose) option with rm.
Makefile
-v
rm
This should make the tests more maintainable and the results more visible to contributors.
Description generated by Copilot
This commit includes several changes to improve the testing infrastructure:
Refactor the tests in
command_spec.lua
to use a table-driven approach, making it easier to add new test cases in the future.Add a new helper function
clean_plugin
inhelper.lua
to reload the plugin before each test.Add a new GitHub Actions workflow in
.github/workflows/test.yaml
to run the tests on every push and pull request.Make a minor change in the
Makefile
to use the-v
(verbose) option withrm
.This should make the tests more maintainable and the results more visible to contributors.