App.config replacements for unit tests

Hi everyone, one of my build steps is to run all the unit tests in my .Net application. Prior to running those tests, i need to change some of the appSettings to make them valid for our CI server. I'm achieving some similar for my web project by using the deployment project provided with Visual Studio. Can i do the same for a Test project? Or does Team City provide anything to achieve this?

Thanks, Gonzalo

1 comment
Comment actions Permalink

Hi Gonzalo

I think you'll need to implement it as additional task within MSBuild script.

There is no setting in UI, but NUnit runner automatically loads app.config file, if it's stored in the same folder with test dll, and named as <name>.dll.config

Michael

0

Please sign in to leave a comment.