-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add support for Spec syntax #30
Comments
I've started working on this in my fork. There are a few things I'm working on at the moment:
The first two things are pretty straightforward, and I have those partially working. The last bullet point is giving me some trouble. For some cases, it is pretty easy to detect when a test file is using class MyTest < Minitest::Spec However, in some cases (this is my situation), Maybe for those kinds of special cases we would just offer a static configuration option, e.g.:
|
Nevermind! That third bullet ended up being a non-issue. I put up a draft PR here in case you want to play with it or give feedback: #33. Right now I have test running working, but haven't started on output parsing so although tests can be run, they always show up as failed. Will tackle that next. |
Thanks for all the effort with this plugin!
Has there been any effort towards getting Minitest's spec syntax working? I'd love to help if possible or even pay for someone's time to get it working.
It looks like this is where the magic happens?
neotest-minitest/lua/neotest-minitest/init.lua
Line 41 in 5623b9a
ChatGPT tells me it's tree sitter syntax and looking at the
neotest-rspec
library it seems like spec syntax can be defined with thisThe text was updated successfully, but these errors were encountered: