From 28adee9582c918c7db4aa977f2b2323ec2ef5545 Mon Sep 17 00:00:00 2001 From: DarkKronicle Date: Mon, 26 Aug 2024 17:08:17 -0600 Subject: [PATCH] Ignore checking for namespace scope - https://github.com/Issafalcon/neotest-dotnet/issues/114 - I don't really know the implications of this because I am doing simple dotnet projects. So this fix works good enough for me, but probably not for the full plugin. --- lua/neotest-dotnet/mstest/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/neotest-dotnet/mstest/init.lua b/lua/neotest-dotnet/mstest/init.lua index 4915092..c488084 100644 --- a/lua/neotest-dotnet/mstest/init.lua +++ b/lua/neotest-dotnet/mstest/init.lua @@ -275,8 +275,7 @@ M.generate_test_results = function(output_file_path, tree, context_id) end -- Use the full_name of the test, including namespace - local is_match = #result_test_name == #node_data.full_name - and string.find(result_test_name, node_data.full_name, 0, true) + local is_match = string.find(result_test_name, node_data.full_name, 0, true) ~= nil if is_match then -- For non-inlined parameterized tests, check if we already have an entry for the test.