Visual Studio + MSTEST Code?

Is there any way to start and debug MSTest V2 from Visual Studio code? I'm at a dead end.

It works fine from the command line: it dotnet testproduces the expected results.

Here's what my current launch.json looks like:

"configurations": [
    {
        "name": ".NET Core Test (Serialization)",
        "type": "coreclr",
        "request": "launch",
        "preLaunchTask": "build",
        "program": "${workspaceRoot}/Fact.Extensions.Serialization.Tests/bin/Debug/netcoreapp1.0.1/Fact.Extensions.Serialization.Tests.dll",
        "args": ["test", "-debug"],
        "cwd": "${workspaceRoot}/Fact.Extensions.Serialization.Tests",
        "externalConsole": false,
        "stopAtEntry": false,
        "internalConsoleOptions": "openOnSessionStart"
    }

The intended launch of coreclr is equal dotnet run, which would be problematic.

+4
source share

Source: https://habr.com/ru/post/1660902/


All Articles