Within the solution that contains all our unit tests we have some text files. These text files are checked based on some results generated by our unit tests.
In order to load the files we have an app.config with:
<add key="BaseTestDataPath" value="D:\MyPath\MySolution\" />
So on each build run I want to:
- Change the BaseTestsDataPath to the specific work path of the agent eg. C:\TeamCity\buildAgent\work\1ca1a73fe3dadf57\MySolution\
I know the physical layout within the agent work folder so what I need to know is:
- How to change the app.config file prior to the Nunit run against the solution in my build steps using the current work folder for that agent