0

If you have the following:

[TestFixture]
public class SuccessTests
{
    [Test]
    [Category("Long")]
    public void VeryLongTest()
    { /* ... */ }
}

How can you - from within VS Test Explorer, or as part of a build config - run only those tests marked as belonging to the "Long" category?

4

1 回答 1

2

在您的构建中,您可以运行 nunit 控制台运行程序:

nunit-console.exe TestAssembly.dll /include:Long

更多信息:http ://www.nunit.org/index.php?p=consoleCommandLine&r=2.2

于 2013-10-09T17:45:28.333 回答