Closed massix closed 5 months ago
Hi @massix ! So glad you find the plugin useful!
Thanks a lot for spotting this and raising a PR. I've just updated it to fix formatting and added a unit test to cover off this use case, which confirms your fix works.
Happy to merge this in!
Thanks a lot for your reactivity! 👐
Hello, first of all thanks for this plugin. I recently started developing in C# on Linux and this has been a lifesaver. I'm currently using
xUnit
as the testing framework and I wanted to create a custom Attribute in order to ignore some tests depending on the value of some environment variables, so I created the following class, which basically sets theSkip
property to the value of a given Environment Variable.And this is the way I'm using it in code:
Now, this works very well when running
dotnet test
and the behaviour is correct. The problem is that theneotest-dotnet
adapter was not retrieving the tests, despite my current configuration:(Of course this is inside the
neotest.adapters
table).I noticed though, that if I added even a single test using one of the standard attributes to my test class (for example
[Fact]
) then all the other tests were detected correctly, but as soon as I removed the[Fact]
, then neotest was no longer refreshing the file.Hence, I started investigating and I found the line that I modified in my Pull Request, which apparently solves the issue I was having.
I've been using Neovim for quite some time now and I'm aware that sometimes the underlying APIs are modified, and I think (but I am not sure!) that the
vim.tbl_flatten
function got modified, now instead of modifying the table in-place, it returns a copy of it?So I opened this PR, test it out and let me know if there's something more I can do!