diff --git a/lua/test-samurai/core.lua b/lua/test-samurai/core.lua index 04dc1ab..ea3316f 100644 --- a/lua/test-samurai/core.lua +++ b/lua/test-samurai/core.lua @@ -2130,6 +2130,7 @@ run_command = function(command, opts) local runner = options.runner local parser_state = {} parser_state.scope_kind = options.scope_kind + parser_state.spec_scope = options.spec_scope parser_state.aggregate_results = nil parser_state.result_start_line = nil parser_state.result_end_line = nil @@ -2464,6 +2465,7 @@ function M.run_nearest() track_scope = true, runner = runner, scope_kind = "nearest", + spec_scope = spec.scope, output_parser = parser or runner.parse_results, }) end