Skip to content

Testing: Need to step-in-to and debug the test adapter discovery process #7419

@clairernovotny

Description

@clairernovotny

While working on getting xUnit working better on the new test platform, I've been struggling with code that executes at discovery time.

I'm sure that the issues themselves would be easy to spot/fix once in a debugger, but that's the real issue -- there doesn't seem to be any way of getting a debugger to attach to the correct dotnet instance that's loading the adapter in discovery mode.

If you run dotnet vstest path\to\test.dll, it appears so spawn off another dotnet instance.

Things that don't help -- the Child Process Debugging tool requires that win32 debugging be enabled. It also does not seem to currently support CoreCLR as one of the debug engines you can start a child on.

What I really need: A way to debug the test adapter code in discovery mode. Debugging test execution mode is a little easier because you can "debug selected test" and VS does attach to the right process and we can set breakpoints in our adapter code before it gets to the test.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions