ASP.net/C#: How compile classes in App_Code so that can be run from command line for unit testing? -
There are several class files in the episode in the ASPK website running in Microsoft Visual Studio 2005 Professional.
To use the full unit test suite, I want to compile only those project-wide classes in one .EXE so that I can test them at night.
I do How to create a separate C # Library project and how to include them on my website - but this is not desirable - I have the ability to fly Do not want the code changes in those library classes while running the website in the debugger. As far as I know the .NET debugger is not powerful enough, the code is not modified with automatic re-compiling on the page reload enough to modify the code in the included libraries.
Therefore, I want my cake and will eat it,
- Command line unit tests of website class files in the App_Code directory
- Those class files Being able to modify / restart / debugger the web debugger.
Is both possible?
You should place the code in a completely different class library / assembly, then it will be your web project and Refer to command line utility. As far as I know, it does not matter that you modify your code when the debugger was stopped.
Hope that helps.
Comments
Post a Comment