Skip to content

Commit

Permalink
fix(neotest): remove unsupported --show-output flag for cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed May 4, 2024
1 parent 6f1aeda commit 8eb3e42
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.22.10] - 2024-05-04

### Fixed

- Neotest: Remove unsupported `--show-output` flag when running
with cargo-nextest.

## [4.22.9] - 2024-05-04

### Changed
Expand Down
14 changes: 12 additions & 2 deletions lua/rustaceanvim/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,18 @@ function M.try_nextest_transform(args)
table.insert(args, 3, '--nocapture')
table.remove(args, #args)
end
if args[#args] == '--exact' then
table.remove(args, #args)
local nextest_unsupported_flags = {
'--exact',
'--show-output',
}
local indexes_to_remove_reverse_order = {}
for i, arg in ipairs(args) do
if compat.list_contains(nextest_unsupported_flags, arg) then
table.insert(indexes_to_remove_reverse_order, 1, i)
end
end
for _, i in pairs(indexes_to_remove_reverse_order) do
table.remove(args, i)
end
return args
end
Expand Down

0 comments on commit 8eb3e42

Please sign in to comment.