nabekou29 / js-i18n.nvim

A Neovim plugin for the JavaScript library i18next
MIT License
20 stars 6 forks source link

tests: refactor tests and add GitHub Actions workflow #15

Closed nabekou29 closed 3 months ago

nabekou29 commented 3 months ago

Description generated by Copilot

This commit includes several changes to improve the testing infrastructure:

  1. Refactor the tests in command_spec.lua to use a table-driven approach, making it easier to add new test cases in the future.

  2. Add a new helper function clean_plugin in helper.lua to reload the plugin before each test.

  3. Add a new GitHub Actions workflow in .github/workflows/test.yaml to run the tests on every push and pull request.

  4. Make a minor change in the Makefile to use the -v (verbose) option with rm.

This should make the tests more maintainable and the results more visible to contributors.