Skip to content

Commit

Permalink
fix(testables,neotest): don't use nextest if disabled in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 7, 2024
1 parent 8940ef5 commit 08ddf66
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ 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.6.0] - 2024-02-07

### Fixed

- testables/neotest: Don't use nextest if disabled in the config.

## [4.5.2] - 2024-02-06

### Fixed

- runnables/debuggables/testables: `cd` into directory with spaces [[#212](https://github.com/mrcjkb/rustaceanvim/issues/212)].

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ local RustaceanDefaultConfig = {
test_executor = get_test_executor(),

---@type boolean
enable_nextest = vim.fn.executable('cargo-nextest') == 1,
enable_nextest = true,

--- callback to execute once rust-analyzer is done initializing the workspace
--- The callback receives one parameter indicating the `health` of the server: "ok" | "warning" | "error"
Expand Down
4 changes: 3 additions & 1 deletion lua/rustaceanvim/runnables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ function M.get_command(runnable)
ret = vim.list_extend(ret, args.cargoExtraArgs or {})
table.insert(ret, '--')
ret = vim.list_extend(ret, args.executableArgs or {})
ret = overrides.try_nextest_transform(ret)
if config.tools.enable_nextest then
ret = overrides.try_nextest_transform(ret)
end

return 'cargo', ret, dir
end
Expand Down

0 comments on commit 08ddf66

Please sign in to comment.