Skip to content

[FEAT] Inspect the test commands run by Neotest #272

@fnune

Description

@fnune

Sometimes I want to copy the commands run by Neotest under the hood. There are different use-cases for this:

  • Inspecting whether a test is failing to run due to a misconfiguration
  • Checking out verbosity levels
  • Sharing the commands with other people
  • Just learning

Currently I can't find a way to do this using Neotest's API. The best I could do is:

local position_id, args = neotest.run.get_last_run()

But position_id is just a test ID path. I want the full command, e.g. pytest -v <some-file> --bla-bla.

Any guidance would be appreciated if this needs to be implemented by my installation. Thanks, and thanks for the great plugin! <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions