Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/neotest-vstest/dotnet_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ end
---@param project DotnetProjectInfo
---@return integer?
function M.get_project_last_modified(project)
return files.get_path_last_modified(project.proj_file)
return files.get_path_last_modified(project.dll_file)
end

---@async
Expand Down
10 changes: 10 additions & 0 deletions lua/neotest-vstest/vstest/discovery/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ function M.discover_project_tests(project, path)
and path_last_modified
and (project_last_modified < path_last_modified)
then
logger.trace(
"rebuilding project "
.. project.proj_file
.. " on path: "
.. path
.. " last modified: "
.. project_last_modified
.. " path last modified: "
.. path_last_modified
)
rebuilt = dotnet_utils.build_project(project)
end

Expand Down
Loading