开发者

Adding xUnit.NET ASP.NET MVC unit tests to an existing project/solution

I downloaded xUnit.NET today, along with TestDriven.NET, and installed the ASP.NET MVC unit test templates. I have an existing ASP.NET MVC solution that 开发者_StackOverflow社区I want to add an xUnit unit test project to, but it seems that the only way to create such a project is with the "Create Unit Tests?" dialog that appears when you first create an ASP.NET MVC project.

Is it possible to add xUnit tests to an existing ASP.NET MVC project/solution?


Yes.

Why cant you just add a new test project manually? All dialog does is set up some initial tests that are pretty meaningless once you actually start coding.


Looks like xunit are removing the templates soon anyhows - they certainly didn't work when I tried to create a new web + test project.


Hi Did you try below? http://stephenwalther.com/blog/archive/2008/06/30/an-introduction-to-the-xunit-net-testing-framework-for-asp-net-mvc-developers.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜