fix missing summary after TSamLast call
All checks were successful
tests / test (push) Successful in 9s
All checks were successful
tests / test (push) Successful in 9s
This commit is contained in:
@@ -76,7 +76,7 @@ local function help_lines()
|
||||
" <C-h> Focus Test-Listing-Float",
|
||||
" <leader>z Toggle Detail-Float full width",
|
||||
" <leader>o Jump to test location",
|
||||
" <leader>cb breaks test-command onto multiple lines",
|
||||
" <leader>cb breaks test-command onto multiple lines (clears search highlight)",
|
||||
" <leader>cj joins test-command onto single line",
|
||||
" ? Show this help",
|
||||
"",
|
||||
@@ -91,6 +91,7 @@ local function help_lines()
|
||||
"",
|
||||
"Notes:",
|
||||
" No output captured -> shows placeholder text",
|
||||
" Buffers are saved via :wall before every test run",
|
||||
}
|
||||
end
|
||||
|
||||
@@ -1361,6 +1362,7 @@ end
|
||||
|
||||
function M.listing_break_on_dashes()
|
||||
apply_listing_substitution([[%s/--/\\\r\t--/g]])
|
||||
vim.cmd("noh")
|
||||
end
|
||||
|
||||
function M.listing_join_backslashes()
|
||||
@@ -1885,6 +1887,7 @@ end
|
||||
|
||||
run_command = function(command, opts)
|
||||
local options = opts or {}
|
||||
vim.cmd("wall")
|
||||
state.last_test_outputs = {}
|
||||
state.last_result_line_map = {}
|
||||
state.last_raw_output = nil
|
||||
@@ -1935,7 +1938,10 @@ run_command = function(command, opts)
|
||||
skips = {},
|
||||
}
|
||||
local had_parsed_output = false
|
||||
local summary_enabled = options.scope_kind == "file" or options.scope_kind == "all" or options.scope_kind == "nearest"
|
||||
local summary_enabled = options.scope_kind == "file"
|
||||
or options.scope_kind == "all"
|
||||
or options.scope_kind == "nearest"
|
||||
or options.scope_kind == "last"
|
||||
local summary = make_summary_tracker(summary_enabled)
|
||||
local result_counts = make_summary_tracker(true)
|
||||
state.last_border_kind = "default"
|
||||
@@ -2209,6 +2215,7 @@ function M.run_last()
|
||||
end
|
||||
run_command(command, {
|
||||
runner = runner,
|
||||
scope_kind = state.last_scope_kind or "last",
|
||||
output_parser = parser or (runner and runner.parse_results),
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user