如何使用asp.net 5项目(尤其是ReSharper)运行nunit测试?

编程入门 行业动态 更新时间:2024-10-28 00:15:04
本文介绍了如何使用asp 5项目(尤其是ReSharper)运行nunit测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发针对dnx451的asp 5应用程序.

I am developing an asp 5 application targeting dnx451.

asp 5项目依赖一些库,这些库具有为nunit 2.x编写的单元测试.因此,对我而言,合理的选择是使用nunit测试asp 5项目.

The asp 5 project relies some libraries with unit-tests written for nunit 2.x. So the reasonable choice for me is to use nunit for testing the asp 5 project.

当我在ReSharper中运行单元测试时,ReSharper会说测试未运行",并显示附加消息"System.IO.FileNotFoundException:无法加载文件或程序集xxx".

When I running the unit test in ReSharper, the ReSharper says "Test not run" with additional message "System.IO.FileNotFoundException: Could not load file or assembly xxx ".

nunit 2.6.4和3.0.0-beta-2都会产生相同的错误.

Both nunit 2.6.4 and 3.0.0-beta-2 results the same error.

有人成功针对dnx项目运行nunit测试吗?

Any one has successfully running nunit tests against an dnx project?

推荐答案

DNX测试.这是一个全新的执行模型,尚未为ReSharper实施.我希望随着DNX和asp稳定并即将发布而看到支持.另外,我不相信nunit本身支持作为DNX测试运行程序运行-xunit团队有一个单独的项目可插入DNX: github/xunit/dnx.xunit

DNX tests aren't currently supported by ReSharper. It's a whole new execution model, and hasn't yet been implemented for ReSharper. I'd expect to see support as DNX and asp stabilise and near release. Also, I don't believe nunit itself supports running as a DNX test runner - the xunit team have a separate project to plug into DNX: github/xunit/dnx.xunit

更多推荐

如何使用asp.net 5项目(尤其是ReSharper)运行nunit测试?

本文发布于:2023-11-05 21:29:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1561906.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:尤其是   如何使用   测试   项目   asp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!