We have a dotnet project where the Unit Tests run fine locally (dotnet framework, NOT dotnet core). Part of the setup for the tests uses a settings.json file in the test application, which is set to "always copy to the output".
On Bamboo, the tests fail and the reason is that instead of running from TestsProject/bin/debug/Tests.dll, which is specified in the MS Test Runner task, it is running from an "Out" directory in a build folder under the job (in our case it is SL-ENCC123-JOB1\Bamboo_CAROL 2018-05-22 10_21_36\Out), which does NOT have the config file in it, although it does have the rest of the project dlls including the test ones.
1) Why are the tests running from a different directory, that is not obvious
2) Why doesn't it copy the config file to Out even though it is set to always copy
3) What is the correct way to handle this?
Thanks
Hi Luke,
The Bamboo specialist helping with your question would like to use the direct messaging and file sharing provided by our support portal. I created a support request in your name; you should see a notification email from the portal shortly.
When the issue is resolved we can circle back and let the Community know.
Thanks,
Ann
We have this exact same issue. Are we able to get some insight as to how to fix this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.