Reputation: 1786
I have created Automated tests using Gherkin and specflow that uses NUnit internally. The tests are running successfully when launched from Visual Studio.
I am trying to run the tests from TFS 2015, however, it is throwing the error.
This is the configuration I have done in build step.
Please help me in resolving the issue.
Upvotes: 0
Views: 212
Reputation: 30372
For the error: 80070005. The build agent usually runs in a Windows Service and not in an Interactive window. That gives it some restrictions when it comes to loading and running Applications. And the user that is hosting the Build Agent might also be a restricted user with limited rights to file system and certain COM/ActiveX controls.
So, you can try to change the TFS build server to run as a user with admin rights (Build Agent service account).
And you can also try below things for troubleshooting.
Upvotes: 1
Reputation: 59018
You don't need to include the path to the custom test adapters if they're installed as NuGet packages. Beyond that, the error you're seeing is because the packages
folder doesn't exist in $(Build.SourcesDirectory)
. It's probably in a subfolder.
Upvotes: 1