1

I'm working on getting NUnit tests running pre-deploy to Azure so I built an application to run tests:

https://github.com/EdLichtman/HelloAzureCI

When I run this on my own PC everything works correctly, 3 unit tests pass and one fails (as I expect should happen, I'm testing Environment AppSettings)

However when I deploy to Azure I get the error: Invalid settings 'RunConfiguration'. Unexpected XmlElement: 'TestAdapterPaths'.

I even automated the creation of the .runsettings file in Powershell to ensure that the Direct path (D:\home\etc...) was initialized as the TestAdaptersPaths so that I could test to see if it just couldn't find the testAdaptersPaths path that I was specifying but it's still getting the error.

I'm using the exact spelling and tree structure from Microsoft's guide to .runsettings, why is it not working?

Joy
  • 1,171
  • 9
  • 15
user3654055
  • 178
  • 14
  • I really want to know why it's working so I'm not answering my own question, but if anyone comes here with the same problem the solution I used is: Because I don't need anything more than TestAdapterPath I added /TestAdapterPath:[Source] instead of an entire settings file – user3654055 Aug 25 '17 at 20:23

1 Answers1

2

Looks like you were missing "s". try using TestAdaptersPaths rather than TestAdapterPaths.

Satya Madala
  • 325
  • 3
  • 8