Visual Studio Code + MSTEST?

独自空忆成欢 提交于 2019-12-07 07:51:01

问题


Is there a way to run and debug MSTest V2 from Visual Studio Code? I'm stumped.

It runs great from the command line: dotnet test produces 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"
    }

Presumably coreclr launch equates to a dotnet run, which would be problematic.

来源:https://stackoverflow.com/questions/40626407/visual-studio-code-mstest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!