Skip to content

Feature: Post-mortem mode for exceptions or failed test cases with DAP #23

@wookayin

Description

@wookayin

Neotest is aware of DAP, e.g., neotest.run.run({strategy = dap}) would run test cases in a DAP debug session.

One missing feature is that when an exception happens or a test fails (via AssertionError), the DAP sesion does not hit the breakpoint and the program terminates normally. Think of some behaviors like pytest --pudb, which would launch the PuDB debugger session with the breakpoint hit on the failing line (like a post-mortem mode).

It would be nice we can have a similar breakpoint or post-mortem mode with the DAP session when running via dap strategy. The current behavior is just showing the test output in a floating window, not stopping the thread.

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