[英]VSTest.Console.exe not finished after test run successfully
I migrated from Visual Studio 2010 to Visual Studio 2013 Express. 我从Visual Studio 2010迁移到Visual Studio 2013 Express。 In VS2010, the MSTest.exe used to run the tests with NAnt. 在VS2010中,MSTest.exe用于通过NAnt运行测试。 As in VS2013 no longer has the MSTeste.exe, I'm using VSTest.Console.exe. 由于在VS2013中不再具有MSTeste.exe,因此我正在使用VSTest.Console.exe。
The problem is that in a test project, the VSTest.Console.exe reports that test run successfully, but does not terminate or continue the process. 问题在于,在测试项目中,VSTest.Console.exe报告测试已成功运行,但没有终止或继续该过程。 It seems that is locked. 似乎已锁定。
In another test project works perfectly. 在另一个测试项目中运行完美。 Have rode by NAnt inside VS2013 Express and MS-Dos and got the same error. 在VS2013 Express和MS-Dos中被NAnt骑乘,并得到了相同的错误。 Because one ends and the other not? 因为一个结束而另一个没有?
VSTest not working: VSTest不起作用:
vstest.console.exe C:\Daniel\DriveD\dotnet\IntegradorWS\Integrador.Senior.Tests\bin\x86\Release\Integrador.Senior.Tests.dll /Logger:trx
Image for MS-Dos: MS-Dos的图像:
VSTest working: VSTest工作:
vstest.console.exe C:\Daniel\DriveD\dotnet\IntegradorWS\Integrador.Modelo.Tests\bin\x86\Release\Integrador.Modelo.Tests.dll /Logger:trx
Image for MS-Dos: MS-Dos的图像:
Are these Tests also Testing a GUI? 这些测试是否也在测试GUI? Is there a MessageBox or another controll that requires a user interaktion? 是否存在需要用户干预的MessageBox或其他控件? If yes, you should abstract the Controll, ie the MessageBox, into one MessageBox-Adapter thas is easy to be Mocked into your corresponding test. 如果是,则应将Controll(即MessageBox)抽象到一个MessageBox-Adapter中,这样很容易模拟到相应的测试中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.