luka gogrichiani
luka gogrichiani

Reputation: 37

NUnit azuredevops pipeline

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

Upvotes: 1

Views: 959

Answers (3)

Suneel Gokina
Suneel Gokina

Reputation: 1

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

Upvotes: 0

Rahul P Nath
Rahul P Nath

Reputation: 354

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?

Upvotes: 3

jessehouwing
jessehouwing

Reputation: 114461

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

See also:

Upvotes: 0

Related Questions