在批处理文件中完成NUnit测试后运行NUnit摘要

时间:2021-08-20 15:40:55

I want to to run NUnit summary.exe after successful completion of a NUnit Tests assembly. I am calling NUnit from a batch file and then I want to call NUnit summary. How to do this?

我想在成功完成NUnit Tests程序集后运行NUnit summary.exe。我从批处理文件中调用NUnit,然后我想调用NUnit摘要。这该怎么做?

1 个解决方案

#1


Just add nunit summary.exe after the call to nunit.console.exe in your batch file. If you want more control than that you should checkout Powershell which would make it much easier to check if the results.xml file exists after your test run.

只需在批处理文件中调用nunit.console.exe后添加nunit summary.exe即可。如果你想要更多的控制权,你应该检查Powershell,这样可以更容易检查test.xml运行后是否存在results.xml文件。

#1


Just add nunit summary.exe after the call to nunit.console.exe in your batch file. If you want more control than that you should checkout Powershell which would make it much easier to check if the results.xml file exists after your test run.

只需在批处理文件中调用nunit.console.exe后添加nunit summary.exe即可。如果你想要更多的控制权,你应该检查Powershell,这样可以更容易检查test.xml运行后是否存在results.xml文件。