0
votes

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.

enter image description here

enter image description here

This is the configuration I have done in build step.

Please help me in resolving the issue.

2

2 Answers

1
votes

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.

1
votes

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.

  • running the build on your local machine from the commandline under your account.
  • running the build on the build server from the commandline under your account.
  • running the build on the build server from the commandline under the build server account