Prevent certain adapters from detecting tests in the wrong language? #256
-
In one project I have both Python and Javascript/Typescript code. Here, the neotest-mocha adapter is wrongly detecting the Python tests and will attempt to run them. But of course I want the neotest-python adapter to detect those and run those tests, not neotest-mocha. I opened up an issue with neotest-mocha here about it, as my understanding is that it is each adapter's responsibility to detect the appropriate tests, e.g. based on file type/language (as mentioned here). But I was also thinking maybe neotest itself comes with some sort of configuration capabilities that I could use for this, to force each adapter to be limited to a certain filetype/pattern or language? For completeness, this is my neotest config. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don't think it'd make sense to have this in neotest core. You can already configure adapters per project which will suit most people, and for shared projects the adapters should be able to detect filetypes etc. Having a third option for configuring adapters for a file would just be more complexity for very little payoff IMO. If there is a significant advantage that I've missed then it could be worth it but as far as I can see there is little benefit |
Beta Was this translation helpful? Give feedback.
I don't think it'd make sense to have this in neotest core. You can already configure adapters per project which will suit most people, and for shared projects the adapters should be able to detect filetypes etc. Having a third option for configuring adapters for a file would just be more complexity for very little payoff IMO.
If there is a significant advantage that I've missed then it could be worth it but as far as I can see there is little benefit