开发者

How to force mstest result to overide the results file when running the test from command-line

开发者 https://www.devze.com 2023-03-09 01:18 出处:网络
I want to r开发者_如何学运维un the mstest via command line when i\'m using /resultsfile:\"file_name.trx\" on the second time it will not run because the file is already exist.

I want to r开发者_如何学运维un the mstest via command line when i'm using /resultsfile:"file_name.trx" on the second time it will not run because the file is already exist.

How can i use the same file-name and simply override the existent trx file.


The approach I've used is to add logic into my build script to delete the file before the test is run.

<Delete Files="file_name.trx" Condition="Exists('file_name.trx')"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消