我希望单元测试报告包含单元测试源文件的ChangesetID。 某些源控制系统(Unix sccs,PVCS)具有特殊变量,当从源控制存储库下载文件时,源控制系统将绑定(解析,扩展)。
@TestReport(originalAuthor = "RRE", specificationDocument = "CIP_LLSDD_Infrastructure_Common.rtf", classUnderTest = Actor.class, changeset = %%TFSCHANGESET%% )在TFS源代码控制中有这样的事情吗?
I would like a unit test report to contain the ChangesetID of the unit test source file. Some source control systems (Unix sccs, PVCS) have special variables that the source control system will bind (resolve, expand) when the file is downloaded from the source control store.
@TestReport(originalAuthor = "RRE", specificationDocument = "CIP_LLSDD_Infrastructure_Common.rtf", classUnderTest = Actor.class, changeset = %%TFSCHANGESET%% )Is there such a thing in TFS source control?
最满意答案
不,没有这种方法来绑定变量,就像你在TFS中演示一样。
如果要将变更集信息添加到单元测试报告中,则可能必须通过TFS API对其进行自定义。 下面是一个示例,说明如何自定义测试报告供您参考: 创建详细的测试报告,显示测试用例步骤的结果
No, there is no such way to bind a variable as you demonstrate in TFS.
If you want to add the changeset info into an unit test report, you may have to customize it through TFS API. Here is a example shows how to customize the test report for you reference: Creating a detailed test report showing results of test case steps
更多推荐
发布评论