mirror of
https://github.com/nvim-lua/plenary.nvim
synced 2024-09-16 13:24:05 +02:00
otherwise its a breaking change, see https://github.com/nvim-treesitter/nvim-treesitter/pull/4856
This commit is contained in:
parent
58a496a55e
commit
6aeb98daac
4 changed files with 5 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -39,5 +39,5 @@ luac.out
|
|||
*.x86_64
|
||||
*.hex
|
||||
|
||||
|
||||
build/
|
||||
doc/tags
|
||||
|
|
|
@ -238,7 +238,7 @@ Without second argument, `PlenaryBustedDirectory` is also run with a minimal
|
|||
configuration. Otherwise it is a Lua option table with the following fields:
|
||||
- `nvim_cmd`: specify the command to launch this neovim instance (defaults to `vim.v.progpath`)
|
||||
- `init`: specify an init.vim to use for this instance
|
||||
- `minimal_init`: as for `init`, but also run the neovim instance with `--clean`
|
||||
- `minimal_init`: as for `init`, but also run the neovim instance with `--noplugin`
|
||||
- `sequential`: whether to run tests sequentially (default is to run in parallel)
|
||||
- `keep_going`: if `sequential`, whether to continue on test failure (default true)
|
||||
- `timeout`: controls the maximum time allotted to each job in parallel or
|
||||
|
|
|
@ -33,7 +33,7 @@ The second argument is a Lua option table with the following fields:
|
|||
`init` specify an init.vim to use for this instance, if not given
|
||||
a minimal configuration is used.
|
||||
`minimal_init` as for `init`, but also run the neovim instance with
|
||||
`--clean`.
|
||||
`--noplugin`.
|
||||
`sequential` whether to run tests sequentially (default is to run in
|
||||
parallel).
|
||||
`keep_going` if `sequential`, whether to continue on test failure (default
|
||||
|
@ -41,7 +41,7 @@ The second argument is a Lua option table with the following fields:
|
|||
`timeout` controls the maximum time allotted to each job in parallel or
|
||||
sequential operation (defaults to 50,000 milliseconds).
|
||||
|
||||
Unless `init` is given, the neovim instance is run with the `--clean`
|
||||
Unless `init` is given, the neovim instance is run with the `--noplugin`
|
||||
argument.
|
||||
|
||||
The exit code is 0 for success and 1 for fail, so you can use it easily in
|
||||
|
|
|
@ -91,7 +91,7 @@ function harness.test_directory(directory, opts)
|
|||
}
|
||||
|
||||
if minimal then
|
||||
table.insert(args, "--clean")
|
||||
table.insert(args, "--noplugin")
|
||||
if opts.minimal_init then
|
||||
table.insert(args, "-u")
|
||||
table.insert(args, opts.minimal_init)
|
||||
|
|
Loading…
Reference in a new issue