Cannot get MvcIntegrationTestFramework to work.

I'm trying to get Stephen Sanderson's MvcIntegrationTestFramework to work with our MVC 4 application. I really like the idea of ​​writing integration tests that do not require a browser, but that check the entire stream.

I can't get this to work. When I perform a very simple test, all I get is:

Unable to instantiate class website.tests.UnitTest1. Error: System.InvalidOperationException: Failed to load MvcIntegrationTestFramework.dll in the bin directory in C: [path] \ Site. Is this the way to your ASP.NET MVC application, and did you create an event after the build to copy your test builds and their dependencies to this folder? See Demo Project for an example ..

This is the right path to the MVC application, and Ive put a test project next to it in the solution. Ive also set the line after the build, and it copies the DLL files that I check by looking at the bin folder in MVC applications. However, he claims that he cannot findMvcIntegrationTestFramework.dll

Im uses MSTest as a test environment.

Does anyone know how to solve this?

+3
source share
1 answer

This version has been updated for MVC3, I have good results with it:

https://github.com/JonCanning/MvcIntegrationTestFramework

I forked this too and added file upload support.

https://github.com/Steji/MvcIntegrationTestFramework

+3
source

All Articles