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?
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.
G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events