Teamcity inconsistency of working directory with NUnit causing test failures

We are running NUnit test on multiple test assemblies in different directories using the built in support for NUnit. The working directory is being set by teamcity to the location of one of the test assemblies and then used for all of the tests, for all the other assemblies. This causes test failures since we depend on the standard NUnit behavior of setting the working directory to the location of each test assembly. (For example NHibernate requires certain DLLS to be in the current working directory.)Any ideas on the best way to resolve this?

Please sign in to leave a comment.