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

Support extra_args #106

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

MisanthropicBit
Copy link
Contributor

@MisanthropicBit MisanthropicBit commented Mar 8, 2024

This PR adds support for neotest.RunArgs.extra_args passed to build_spec for adding additional arguments to the test process via neotest.run.run.

An example use case is running tests and updating snapshots:

require("neotest").run.run({ extra_args = { "--updateSnapshots" } })

Other changes

  • I fixed the is_test_file tests that weren't run asynchronously but was calling async functions.
  • Updated tests after path escaping in fix: escape test file path #109. I'm not sure why they were passing before. There is also no test output from the test script in github actions so there might be something amiss with the setup.

@MisanthropicBit MisanthropicBit marked this pull request as ready for review March 10, 2024 21:32
@izifortune
Copy link

This will indeed be helpful

@MisanthropicBit
Copy link
Contributor Author

@izifortune FYI, I've started a new dev branch on my fork that I intend to keep in sync with the upstream repo and continuously merge select open PRs so I can start using some of these things myself until upstream catches up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants