- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试获取 Steven Sanderson 的 MvcIntegrationTestFramework与我们的 MVC 4 应用程序一起使用。我真的很喜欢能够编写不需要浏览器但测试整个流程的集成测试的想法。
我无法让它运行。当我执行一个非常简单的测试时,我得到的只是:
Unable to create instance of class website.tests.UnitTest1. Error: System.InvalidOperationException: Could not load MvcIntegrationTestFramework.dll within a bin directory under C:[path]\Website. Is this the path to your ASP.NET MVC application, and have you set up a post-build event to copy your test assemblies and their dependencies to this folder? See the demo project for an example..
这是 MVC 应用程序的正确路径,我已将测试项目放在解决方案中的旁边。我还设置了构建后复制字符串,它复制了 .dll 文件,我通过在 MVC 应用程序 bin 文件夹中查找来验证这些文件。它仍然声称找不到 MvcIntegrationTestFramework.dll
我使用 MSTest 作为测试框架。
有人知道如何解决这个问题吗?
最佳答案
此版本已针对 MVC3 进行了更新,到目前为止我已经获得了相当不错的结果:
https://github.com/JonCanning/MvcIntegrationTestFramework
我也 fork 了这个并添加了对文件上传的支持。
关于asp.net-mvc - 无法让 MvcIntegrationTestFramework 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10270030/
我正在尝试获取 Steven Sanderson 的 MvcIntegrationTestFramework与我们的 MVC 4 应用程序一起使用。我真的很喜欢能够编写不需要浏览器但测试整个流程的集成
我正在寻找其他方法来测试 ASP.NET MVC 应用程序并遇到了 Steve Sanderson 的 MvcIntegrationTestFramework .该方法看起来很有前途,但我想知道是否有
我有兴趣使用 Steve Sanderson 的 MvcIntegrationTestFramework 或使用 ASP.NET MVC 3 Beta 的非常类似的替代方案。 当前,在针对 MVC 3
我是一名优秀的程序员,十分优秀!