简体   繁体   中英

Testing in Visual Studio Web Developer Express 2010

I have to write a unit test of my web application (ASP.NET - C#). So far I know very little about testing, I have read everywhere that express edition doesn't support testing at all and so far I haven't found any other way to achieve my goal. I was wondering if there is a way to walk around it somehow and (if there isn't it is weird that I got this task) and how to implement the test itself. Would anyone please help me?

You can write the tests from within Visual Studio by creating a Class Library and importing nunit.framework. However, you will be unable to run your tests from within Visual Studio due to the EULA preventing third-party add-ins. You can however, run them from the command line

Refer to nunit's page on Running Tests found here

I would assume you could also set up the command line to run as a post-build command if you wanted as well

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM