如何在 TeamCity WebUI 上显示我的单元测试的描述?
我正在使用 NUnit 和 TeamCity,并且我已经编写了一些带有描述的系统测试。
/// <summary>
/// Should send the password reminder and...
/// </summary>
[Test]
public void ShouldSendPasswordReminder()
{
}
在 Teamcity 上,测试运行后,仅显示状态、测试方法名称、测试类名称和持续时间;但是,我希望测试的“描述”也显示在 TeamCity WebUI 上。
这怎么可能呢?
谢谢,
I'm using NUnit and TeamCity and I have written some system tests with descriptions.
/// <summary>
/// Should send the password reminder and...
/// </summary>
[Test]
public void ShouldSendPasswordReminder()
{
}
On Teamcity, after a test has run, it displays only the Status, Test Method Name, Test Class Name and Duration; however, I'd like to have the "Description" of the test to be displayed on the TeamCity WebUI as well.
How would that be possible?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会考虑使单元测试方法的名称具有自我描述性,如 Roy Osherove 所描述的:
http://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html
这也在他的书,单元测试的艺术,在这里:
http://artofunittesting.com/
I would consider making the name of the unit test method self descriptive, as described by Roy Osherove:
http://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html
This is also described in his book,The Art of Unit Testing, here:
http://artofunittesting.com/