nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.26k stars 112 forks source link

[BUG] Pytest: extra_args are not cleared on subsequent runs #88

Closed WilsonCheng118 closed 2 years ago

WilsonCheng118 commented 2 years ago

After calling run() with extra_args, subsequent run() are called with an appended list of extra_args.

require('neotest').run.run({ vim.fn.getcwd(), extra_args = { "-v" } })
require('neotest').run.run(vim.fn.getcwd())

Both calls have output where -v flag is set.

Then make a new call with new extra_args:

require('neotest').run.run({ vim.fn.getcwd(), extra_args = { "-k core" } })

Output shows both -v and -k core are still being applied.

Running with neotest-python installed.

rcarriga commented 2 years ago

The bug report template exists for a reason. Please provide the log file and an init.lua to reproduce. I can't reproduce myself.