Closed MisanthropicBit closed 1 year ago
Thanks for the suggestion. Looks like a good addition to me. Feel free to open a PR :)
Great :) I'll get started on a PR then. Since neotest-python
is an official neotest repo, I'll go with the configurable is_test_file
option.
First of all, thanks a lot for this adapter. I was about to make it myself before I found this :)
In some cases, I have projects with test file patterns other than "spec" and "test". It would be great if one could customise this via the config so that the
is_test_file
function would recognize these files as well. You could either pass a string or a function that does more sophisticated regex stuff or even just overrideis_test_file
like inneotest-python
. I'd be happy be submit a PR.It might make more sense to implement part of this functionality in neotest itself though I cannot find any open issues on it atm.