Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUnit3TestAdapter 3.8.0-alpha1 Could not find symbol provider type Mono.Cecil.Pdb.NativePdbReaderProvider #325

Closed
michael-x opened this issue May 8, 2017 · 8 comments

Comments

@michael-x
Copy link

When setting

<DebugType>Full</DebugType>

the test adapter does not discover tests anymore. In dotnet test I get a message

Could not find symbol provider type Mono.Cecil.Pdb.NativePdbReaderProvider

Unfortunately full debug information is currently required by OpenCover in order to get coverage information.

@rprouse
Copy link
Member

rprouse commented May 8, 2017

Thanks, should be an easy fix. I didn't include the native PDB reader because I didn't think it was needed, but I didn't think of your use case.

@maartenoosterhoff
Copy link

Any news on this issue? Any info is much appreciated.

@jiaxuyang
Copy link

I solve it by adding reference to "Mono.Cecil".

<PackageReference Include="Mono.Cecil" Version="0.10.0-beta6" />

env:
netcoreapp2.0
NUnit3TestAdapter 3.8.0

@rlordcardano
Copy link

Referencing that version of Mono.Cecil works for me too. Will this be included in a future version of NUnit3TestAdapter?

@rprouse
Copy link
Member

rprouse commented Sep 16, 2017

We copy Mono.Cecil into the adapter NuGet package. We did that for two reasons, first, we use different versions for running .NET Framework tests and for .NET Core tests. The second reason is that Mono.Cecil 10.0 is still pre-release and NuGet raises warnings when a non-pre-release package depends on a pre-release package.

@rlordcardano
Copy link

Hi @rprouse - I see that you've added Mono.Cecil into the package. Strangely enough, even though it's the same version as I've referenced (0.10.0-beta6), the test runner (console or through ReSharper) doesn't pick up the unit tests if Mono.Cecil isn't added as a NuGet reference, as @jiaxuyang mentioned. At least, that's what I'm experiencing...

Aragas added a commit to PCLExt/PCLExt.FileStorage that referenced this issue Nov 8, 2017
Aragas added a commit to PCLExt/PCLExt.FileStorage that referenced this issue Nov 8, 2017
* Update appveyor.yml

Should report .NET Core test project too

* Update appveyor.yml

Quotes fix in path

* Update appveyor.yml

Using dotnet test

* Update appveyor.yml

Replaced dll path with csproj

* Update appveyor.yml

OpenCover requires DebugType=full

* Update appveyor.yml

-oldStyle is needed for pdb guess?

* Update PCLExt.FileStorage.Core.Test.csproj

nunit/nunit3-vs-adapter#325

* Update appveyor.yml

Disable .net core test coverage for now
@tswiftma
Copy link

tswiftma commented Dec 1, 2017

Adding the reference to my test csproj worked for me

@jnm2
Copy link
Contributor

jnm2 commented Mar 13, 2018

This was fixed in #454 and is available now at https://www.nuget.org/packages/NUnit3TestAdapter/3.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants