Skip to content

VSTest stops process execution early #1900

@ViktorHofer

Description

@ViktorHofer

Coverlet is a code coverage tool which collects hit counts in methods and writes the result either into a file or memory. The result writing is done in the ProcessExit event handler of the current AppDomain. It seems that when using dotnet test, the testing framework doesn't wait until the AppDomain's ProcessExit execution is finished and terminates the test process early which leads to no coverage numbers.

coverlet-coverage/coverlet#210 (comment)

Can you please let me know which code path in vstest is responsible for shutting down the current process and explain why it doesn't wait until the process is correctly terminated (ProcessExit chain finished).

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