Closed prdanelli closed 2 years ago
This is most odd. I tried lua require('neotest').run.run()
and then triggered a full test run and get the following:
Can you confirm that you've pulled the latest version down? Also could share the neotest logs? Also care to share the test itself?
We also have tests now within the adapter which test the core functionality and they're running just fine.
Ok, thank you @olimorris for confirming. It must be something local. I'll try and debug and see if I can work it out.
The no test files thing is odd. I can dig through the logs and see what it says though.
Edit: Do you have a Gemfile
in the root folder?
Could be related to https://github.com/olimorris/neotest-rspec/pull/15
I'm having trouble running specs using the common naming conventions for class methods e.g. describe '.new' do
Yep can confirm this is definately an issue. I'm beginning to think we're running out of road with the JSON RSpec formatter. I've raised an enhancement in #17 and will begin to look at creating a better formatter which will match Treesitter. If I can get the line_number of the named test from Treesitter then we're onto a winner!
@prdanelli - Could I ask you to try the rspec-formatter branch at some point? I think I may have solved our problems by way of a custom gem. Unfortunately it's a dependency in your Gemfile
right now but working on that.
Update...removed the dependency on the gem now so should just be able to use as-is with your current config.
@prdanelli I think we may have solved this issue with the latest push to main
. I'll leave the ticket open for now.
Hello @olimorris, sorry for the belated reply, its been a long week. After updating the plugins, it seems that everything is working again and also fixed a bug I saw a couple of days ago where the icons where not changing to show the result of the test. Great work! 🎉
Hello. I'm not sure what might have changed, but the plugin seem not to be working anymore. I'm seeing the following error when I try and run
:lua require('neotest').run.run()
on an Rspec file:Then, if i run it again, i see "No tests found":
Just incase it helps, my config is:
I realise that the plugin is a work in progress, so if you have any idea as to what might have caused the recent break i'd be grateful to know. Thank you for your hard work.