Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Dec 2, 2024
1 parent f613816 commit 1d1645d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/neotest-dotnet/vstest_wrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 1d1645d

Please sign in to comment.