简体   繁体   English

成功运行测试后,VSTest.Console.exe未完成

[英]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.

相关问题 VSTest.Console.exe的测试运行结果未与测试计划关联 - Test run results of VSTest.Console.exe not getting associated to Test Plan vstest.console.exe可以在没有安全证书的情况下运行appx - Can vstest.console.exe run an appx without a security certificate 当测试在 vstest.console.exe 中运行时,为什么 do.net vstest 返回“没有可用的测试”? - Why does dotnet vstest return "No test is available in" when the test works in vstest.console.exe? 没有vstest.console.exe发现的xunit测试 - No xunit tests discovered by vstest.console.exe VS 2019使用MSBuild.exe和VSTest.console.exe自动生成和测试 - VS 2019 Automating Build and Test with MSBuild.exe and VSTest.console.exe 测试用例在使用 https 的 docker windows 控制台中失败 vstest.console.exe - Test cases are failing vstest.console.exe in docker windows console with https 如果一个测试使用vstest.console.exe失败,如何停止测试? - How to stop test if one test fails using vstest.console.exe? vstest.console.exe运行单元测试时,TraceSource消息未记录到trx文件中 - TraceSource messages not being logged to the trx file when unit tests are run by vstest.console.exe 如何使用VS2017 Vstest.console.exe运行VS 2015测试 - How to run VS 2015 tests using VS2017 Vstest.console.exe 如何使用 vstest.console.exe 在 cmd 中运行 Specflow 功能/场景? - How to run Specflow feature/scenarios in cmd using vstest.console.exe?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM