【发布时间】:2015-08-28 10:48:36
【问题描述】:
有谁知道如何在 Visual Studio 2015 的测试运行期间显示描述属性?
例如给定这个测试:
[TestMethod]
[TestCategory("With Fakes")]
[Description("Posting a blog entry without the required data should return a BadRequest")]
public async Task BlogEntryPostTest1()
{
... do test
}
如何在运行时显示描述?我认为测试资源管理器不会这样做。有没有其他选择?
【问题讨论】:
-
我同意,因为我的测试目前有很长时间的高度描述性名称,我觉得我现在应该能够使用 description 属性来描述它,然后只需用简单的两个或三个单词名称命名测试使用通常的 UpperCamelCase。
-
你有想过这个吗?
-
@Yatrix 恐怕不行;抱歉,我无法提供更多帮助。
标签: visual-studio unit-testing visual-studio-2015