gpt4 book ai didi

c# - NUnit 不会运行我的单元测试;说缺少测试适配器,但我确实安装了它

转载 作者:行者123 更新时间:2023-12-04 10:06:58 24 4
gpt4 key购买 nike

我有一个包含 NUnit 测试项目的 C# 解决方案。该项目拒绝运行任何测试;它们是通过发现找到的,但随后我在输出窗口中收到了这些错误(以及其他错误):

The active test discovery was aborted. Reason: Test host process crashed
========== Test discovery aborted: 0 Tests found in 1.9 sec ==========
---------- Resuming previously aborted test discovery ----------
Test project Tests does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project.

现在我确实添加了该引用(NUnit3TestAdapter),但我仍然看到这个错误。这是怎么回事?为什么我的测试无法运行?提前致谢! :)

最佳答案

有同样的问题。在 UnitTest 项目中安装“NUnit3TestAdapter”nuget 包为我解决了这个问题。

关于c# - NUnit 不会运行我的单元测试;说缺少测试适配器,但我确实安装了它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61537151/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com