无法对使用 Compact Framework for Windows CE 6.0 平台开发的应用程序运行单元测试
我正在使用 GuD_AtomKit X86 设备模拟器为 Windows CE 6.0 开发解决方案。 我无法运行任何单元测试,因为我收到以下错误消息:
测试适配器 ('Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=9.0无法加载执行此测试所需的.0.0、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a')。检查测试适配器是否安装正确。引发了“Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.TestAlreadyRunningException”类型的异常。
但设备上没有运行单元测试。
我非常感谢你的帮助。
I'm developing a solution for Windows CE 6.0 using GuD_AtomKit X86 Device emulator.
I'm not able to run any unit tests, because I get following error message:
The test adapter ('Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') required to execute this test could not be loaded. Check that the test adapter is installed properly. Exception of type 'Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.TestAlreadyRunningException' was thrown.
But there's no unit test running on the device.
I would really appreciate your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否更改了 testrunconfig 文件中的目标设备?绝对支持针对目标设备运行。
您可能还必须手动将 CF 部署到设备,因为单元测试框架不会自动部署它。
Did you change the target device in your testrunconfig file? Running against the target device is definitely supported.
You also might have to manually deploy the CF to the device as the Unit Test framework doesn't auto-deploy it.
这可能是由硬件问题引起的。当我用正在运行测试的主板更新闪存后,它再次开始工作。所以可能是主板固件中的错误......:(
That was probably caused by a hardware issue. After I updated the flash with the board I was running the test against, it started to work again. So probably a bug in the firmware of the board... :(