renzmann / treesit-auto

Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
GNU General Public License v3.0
369 stars 28 forks source link

No automated tests #25

Open renzmann opened 1 year ago

renzmann commented 1 year ago

We're at the point where it's tough to test all the different cases by hand now:

I am not yet familiar with ERT, but since it's built-in it seems appropriate to add unit testing with it to the package. If any contributors have experience building a test suite with it, contributions are most welcome. Otherwise, it will take some time to get this stood up while I work through the documentation.

wkirschbaum commented 1 year ago

I think once this issue has been addressed it will be easier to test tree sitter support with github actions: https://github.com/purcell/setup-emacs/issues/32

jcs090218 commented 1 year ago

I would love to work on this! :D I use Eask and GHA, here are a few examples:

Basic

More complicated

LMKWYT?

(Oh, BTW. I use jcs090218/setup-emacs (mine) since purcell's doesn't support Windows)

renzmann commented 1 year ago

@jcs090218 apologies I missed this! (Been moving my home for the last couple months so this project had to go by the wayside for a bit). I think something simple would be a good start, and I like the look of Eask. Ultimately, if you have an opinion on how we could run testing then I'll defer to your experience here, since it's a first for me. What I could do, though, is provide some of the common cases we ran into during development that should be checked each time a change is made

wkirschbaum commented 1 year ago

another example: https://github.com/wkirschbaum/elixir-ts-mode/blob/main/.github/workflows/ci.yml