1

I made some researches but still didn't figured out this problem.

So, I made an NUnit test project, selenium with c#.

Tried to add in AzureDevops pipeline.

here is the configuration in azure

enter image description here

I'm getting the following error - enter image description here

I Tried to change those parameters. but didn't get any other result/error.

enter image description here

3 Answers3

2

The pipeline configuration is expecting the tests in the dll with the format **\testhost.*test*.dll. But your solution does not have any projects matching that convention.

Either you need to update the pipeline configuration to match the dll's in your project or have your tests in a different project. But you will still need to update the dll pattern as I am not sure what 'testhost' is in that?

Rahul P Nath
  • 324
  • 4
  • 9
  • what should I pass? I tried various combinations of parameters, neither works. testhost is dll in debug, i tried RentEasly too. – luka gogrichiani Mar 25 '21 at 07:15
  • try RentEasly.dll, assuming that is the dll name that you have when you build the project. You can check that in the bin folder. – Rahul P Nath Mar 25 '21 at 07:22
0

Be sure to add the NUnit Test Adapter nuget to your project containing the tests.

See also:

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
0

When you run the test task initially it will fail. But when you see the error you can get the path of the dll files in working directory/in agent. Add that path in your task and re-run