We have a web application project (actually actually ...) that comes with a testing project. In a test project, I have a simple unit test that executes several methods.
Runs locally, runs a unit test, and works.
However, when our TFS Build server tries to run the test, it fails with an error regarding the invalid path for the AspNetDevelopmentServerHost attribute. Other team members can do this as best as possible.
The problem is that the root of my TFS workspace is set to c: \ projects \ One of the team members is set to c: \ tfs2008 \ The TFS build server, on the other hand, sets the pathToWebRoot variable to "c: \ blahblah \ Release_PublishedWebsites ... "This leads to the wrong way.
Due to the number of projects that we have, I cannot have everyone reset the environment variable every time I switch projects.
So, what are the best practices for web projects for unit testing in a team environment? The MSDN article turned out to be less effective than useful.
Notme source
share