UWP xUnit确实在挑战我

问题描述 投票:0回答:1

从命令行运行

我正在运行最新的VS2019,Windows 10 v10.0.18363。

我当然不能让测试资源管理器正常工作,所以我想尝试命令行。

vstest.console.exe c:\temp\WordToMarkdownUnitTests\bin\x64\Debug\UnitTestProject.build.appxrecipe /platform:x64

这里是错误:

DEP7100: Failed to activate app '4979c77f-dafb-41b1-9b6b-c55405d624ad_d9fbpvqm16pa0!vstest.executionengine.universal.App' with parameters '--port 59383 --endpoint 127.0.0.1:059383 --role client --parentprocessid 25268 --telemetryoptedin false'. The text associated with this error code could not be found.

The text associated with this error code could not be found.

App activation failed.
Failed to initialize client proxy: could not connect to test process.
Closing app with package full name '4979c77f-dafb-41b1-9b6b-c55405d624ad_1.0.0.0_x64__d9fbpvqm16pa0'.

Test Run Aborted.

我已经为此追尾了一段时间。有任何线索吗?

The myriad of nuget packages

我终于将自己的测试工具直接写到了我的应用程序中。效果很好,并且由于将我的测试编译到我的可执行文件中,因此总是可以发现它们。

Home grown test harness

uwp xunit
1个回答
0
投票

我构建自己的测试装置/运行器的解决方案可以为我节省大量时间。它运作良好,并且100%可靠。另外,它使我可以完全控制执行测试的方式,而无需其他Visual Studio项目的开销。

© www.soinside.com 2019 - 2024. All rights reserved.