GustavEikaas / easy-dotnet.nvim

Neovim plugin written in Lua for working with .Net projects in Neovim. Makes it easier to run/test/build/debug projects
MIT License
51 stars 3 forks source link

feat(testrunner):🎁 Group flat tests by default group name #35

Closed GustavEikaas closed 2 weeks ago

GustavEikaas commented 3 weeks ago

In some cases tests does not belong to any namespace. It would be nice to assign these to some sort of default namespace so you can target their execution as a group, and also for a cleaner UI.

Inspired by: #33

GustavEikaas commented 2 weeks ago

@franroa Do you have example code of how to make a test that shows up as flat? image I tried this but it still groups by classname.testname

franroa commented 2 weeks ago

Hi! Thanks for working on this and for the other issues! Yes, I will try to prepare an example tomorrow

franroa commented 2 weeks ago

Hallo! here you have an example: https://github.com/franroa/specflow_example (in this file you have the test definition in case you want to put some more tests https://github.com/franroa/specflow_example/blob/main/PrimeService.Tests/Feature/Test.feature)

GustavEikaas commented 2 weeks ago

Im struggling a bit with making a "fake" group for flat tests but the PR i linked will atleast group them under the csproject they belong to. Which should hopefully help a little bit

image

franroa commented 2 weeks ago

I think that is a good improvement. To me is more than enough.

franroa commented 2 weeks ago

thanks!

GustavEikaas commented 2 weeks ago

Closing this issue for now, I really cant imagine fixing this more than I already have by grouping under csproject