Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(neotest): remove unsupported --show-output flag for cargo-nextest #384

Merged
merged 1 commit into from
May 4, 2024
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
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
Loading