如何从命令行为单个测试运行xunit for asp.net 5

Tho*_*ter 2 xunit.net asp.net-core

如何从命令行为单个测试运行xunit for asp.net 5

VS 2015就是这样的

dnx.exe --appbase "\Mvc\test\Microsoft.AspNet.Mvc.IntegrationTests" Microsoft.Framework.ApplicationHost --port 9543 Microsoft.Framework.TestHost --port 11883 run --test Microsoft.AspNet.Mvc.IntegrationTests.ActionParameterIntegrationTest.ActionParameter_NonSettableArrayModel_EmptyPrefix_DoesNotGetBound

如果我跑这个没什么事情发生的

Kir*_*lla 5

运行单个测试的示例:
dnx . test -method TestNamespace.TestClassName.TestMethodName

类似地,用于在类中运行所有测试
dnx . test -class TestNamespace.TestClassName


更新:Beta7及之后

运行单个测试的示例:
dnx test -method TestNamespace.TestClassName.TestMethodName

类似地,用于在类中运行所有测试
dnx test -class TestNamespace.TestClassName