使用ReSharper在.NET Core中运行NUnit测试 [英] Running NUnit Tests in .NET Core with ReSharper
问题描述
当这些测试在.NET Core项目中时,是否可以使用R#运行NUnit测试? 我一直做不到.如果选择生成输出的选项,则R#无法找到NUnit程序集.
Is it possible to run NUnit tests with R#, when these tests are in a .NET Core project? I have been unable to do that. If I select the option to produce outputs, then R# cannot find the NUnit assembly.
推荐答案
更新:NUnit团队和我已经发布了完整的.NET Core支持,它是一个控制台运行程序,可以在命令下运行测试在Visual Studio的测试资源管理器"中排行并运行测试.请参阅针对.NET Core RC2和有关更多信息,请访问ASP.NET Core RC2 .
Update: The NUnit team and I have released full .NET Core support, it is a console runner that runs tests at the command line and runs tests within Visual Studio's Test Explorer. See NUnit 3 Tests for .NET Core RC2 and ASP.NET Core RC2 for more info.
R#,NUnit Visual Studio适配器甚至nunit3-console.exe都不支持.NET Core. .NET Core项目当前必须使用NUnitLite进行测试通过创建自执行的测试程序集.
Neither R#, nor the NUnit Visual Studio adapter, or even the nunit3-console.exe support .NET Core yet. .NET Core projects currently must be tested using NUnitLite by creating a self-executing test assembly.
NUnit团队正在研究更好的解决方案,有望在未来几个月内发布.
The NUnit team is working on a better solution that will hopefully be released in the next few months.
这篇关于使用ReSharper在.NET Core中运行NUnit测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!