Peter
Peter

Reputation: 249

Can't get MvcIntegrationTestFramework to work

I'm trying to get Steven Sanderson's MvcIntegrationTestFramework to work with our MVC 4 application. I really like the idea of being able to write integration tests that does not require a browser yet tests the entire flow.

I can’t get this to run. When I execute a very simple test all I get is this:

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..

It is the correct path to the MVC application and I’ve put the test project beside it in the solution. I’ve also set up the post-build copy string and it copies the .dll files which I verify by looking in the MVC apps bin folder. Still it claims it can’t find the MvcIntegrationTestFramework.dll

I’m using MSTest as test framework.

Does anyone know how to solve this?

Upvotes: 4

Views: 677

Answers (1)

Steji
Steji

Reputation: 638

This version was updated for MVC3, I'm having fairly good results with it so far:

https://github.com/JonCanning/MvcIntegrationTestFramework

I've forked this too and added support for file uploads.

https://github.com/Steji/MvcIntegrationTestFramework

Upvotes: 3

Related Questions