xUnit在tests文件夹下运行所有​​测试

时间:2016-09-20 17:24:23

标签: c# visual-studio-code xunit

有没有办法(除了这个.NET Core 1.0 - How to run "All tests in Solution" with xUnit command line)通过VS Code使用xUnit运行所有单元测试?我创建了以下任务:

    {
        "taskName": "test",
        "args": [
            "./tests/Project1.UnitTests"
        ],
        "isTestCommand": true,
        "showOutput": "always",
    }

但是我想传递像"./tests/*.UnitTests这样的args,这样每次我添加一个新的测试项目时,任务都会选择它。目前可能吗?

0 个答案:

没有答案