diff --git a/lua/neotest-dotnet/vstest_wrapper.lua b/lua/neotest-dotnet/vstest_wrapper.lua index 7f8c222..a5fc3f8 100644 --- a/lua/neotest-dotnet/vstest_wrapper.lua +++ b/lua/neotest-dotnet/vstest_wrapper.lua @@ -174,7 +174,7 @@ function M.discover_tests(path) local json local proj_info = M.get_proj_info(path) - if not (proj_info.proj_file and proj_info.dll_file) then + if not proj_info.proj_file then logger.warn(string.format("failed to find project file for %s", path)) return {} end @@ -198,6 +198,13 @@ function M.discover_tests(path) logger.debug(stdout) end + proj_info = M.get_proj_info(path) + + if not proj_info.dll_file then + logger.warn(string.format("failed to find project dll for %s", path)) + return {} + end + local dll_open_err, dll_stats = nio.uv.fs_stat(proj_info.dll_file) assert(not dll_open_err, dll_open_err)