Bijaya Rai
Bijaya Rai

Reputation: 55

Azure DevOps VSTest@2 isn't finding any test in test dll

The VSTest@2 does not find any test in a test dll but runs the other tests in other dlls just fine. When I ran the vstest.console.exe command locally on the problem dll, all tests were found and passing.

Fails with the message:

NUnit failed to load C:\a\1\s\test\bin\Framework\Test\Extensions.MSGraph.dll

Is there any other config, settings, or project related settings that would cause the NUnit failure?

Upvotes: 1

Views: 678

Answers (1)

Alexey Lerner
Alexey Lerner

Reputation: 31

It is possible that one of the transitive dependencies are missing (e.g. your project depends on Extensions.MSGraph.dll, and this library depends on some X.dll which is not present).

You can see the list of all library dependencies in Visual Studio like this: How can I track down the source of a transitive dependency?

There are also other tools that can list the library dependencies.

Upvotes: 2

Related Questions