How do I add NUnit as a test framework option for ASP.NET MVC to Visual Web Developer 2008 Express?

前端 未结 9 933
庸人自扰
庸人自扰 2021-01-31 10:33

According to Professional ASP.NET MVC 1.0, page 8, \"If you are using VS 2008 Standard Edition or Visual Web Developer 2008 Express you will need to download and instal

相关标签:
9条回答
  • 2021-01-31 11:13

    For a quick test, try xUnit (more details here). If it works, then digg further on NUnit integration.

    0 讨论(0)
  • 2021-01-31 11:18

    I've been struggling with that same thing as well. What I've done at the end was I took the unit tests created by the ASP.NET MVC team (found in the installer), mixed it with the templates provided by the pages you've mentioned and voila! It works just great :D

    You can download the whole package here

    Best regards, Matthias.

    0 讨论(0)
  • 2021-01-31 11:22

    In VWD Express, use

    VWDExpress /setup
    

    in lieu of

    devenv /setup
    
    0 讨论(0)
  • 2021-01-31 11:23

    The easiest way now in 2011 is to install this ASP.NET MVC NUnit extension from the Visual Studio gallery. The nice part is that this extension can be updated over time so you will have the latest nunit mvc template.

    0 讨论(0)
  • 2021-01-31 11:24

    I just found a blog article that also addresses this issue: NUnit VWD Express MVC setup « A Coders Life

    0 讨论(0)
  • 2021-01-31 11:25

    I just found this Updated NUnit Templates for ASP.Net MVC 1.0 RTM which includes a cmd file to setup the NUnit test framework templates for VWD Express.

    Yay, no more manual steps (unless you really want to).

    0 讨论(0)
提交回复
热议问题