How to make the result of mstest exceed the result file when starting the test from the command line

I want to run mstest through the command line when I use / resultsfile: "file_name.trx" the second time it won’t run because the file already exists.

How can I use the same file name and just override the existing trx file.

+4
source share
1 answer

The approach I used was to add logic to my build script to delete the file before running the test.

<Delete Files="file_name.trx" Condition="Exists('file_name.trx')"/> 
+4
source

All Articles