Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

mattridgway/Sample.ASPNET5-MVC6-Integration-Tests

Repository files navigation

ASPNET5 MVC6 Integration Tests

This repo shows how to write integration tests for an ASPNET5 MVC6 RC1 project using xUnit and the Microsoft.AspNet.TestHost.

Fixing the missing view problem

Thanks to David Fowler for this Pull Request which shows how to setup your project to avoid a known problem where integration tests hosted in a separate project which uses the Microsoft.AspNet.TestHost will fail with the error:

System.InvalidOperationException : The view ‘Index’ was not found. The following locations were searched:
 /Views/Home/Index.cshtml
 /Views/Shared/Index.cshtml

This has been seen in a few places:

About

How to write Integration tests for an ASPNET5 MVC6 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages