klen / nvim-test

A Neovim wrapper for running tests
MIT License
176 stars 26 forks source link

TestFile does not work for csharp and go #18

Open 616b2f opened 2 years ago

616b2f commented 2 years ago

As we already discussed here https://github.com/klen/nvim-test/pull/12#discussion_r866711417 "TestFile" does not work for csharp and go tests.

Did you have already some ideas how we could refactor to support that feature for those languages?

If not and you don't mind I could create a PR with a suggestion.

What do you think?

klen commented 2 years ago

Sorry, I've no time for the moment to spent on this 🤷‍♂️ And I don't use c# so PR is very welcome, sure.

Wiebesiek commented 1 year ago

@616b2f any progress on this?

616b2f commented 1 year ago

When I tried to fix that I found that it also didn't work for many other languages too, at least when I tried it, the reason is that some assumptions in the unittests of this repo are wrong and if you run the commands in real projects they do not work. So I tried to fix the unittests where I could and rewrote stuff in a couple of places, see my fork:

https://github.com/616b2f/nvim-test

I also switched to another nvim plugin for unittests https://github.com/nvim-neotest/neotest in the meantime.

I try to merge the changes from this repo into my fork, because it was never an intention for it to be a real fork but rather I wanted to fix stuff and put them in here, but I changed also to much and not sure if people wan't that changes or not. I will create an PR here if the author is interested to merge them in.