nunit-vs-adapter icon indicating copy to clipboard operation
nunit-vs-adapter copied to clipboard

Test discovery fails if the pdb format is "portable"

Open jeromelaban opened this issue 7 years ago • 8 comments

Using version 2.1.1 of the test adapter, in VS2017 Update 2, the test discovery fails with this error:

Exception System.InvalidOperationException, Exception converting MyTest.

Upgrading the Mono.Cecil package to the latest version (0.10.0-beta6), or using full pdb format fixes the issue.

jeromelaban avatar Jul 08 '17 01:07 jeromelaban

IIRC, we can't target .NET 2 if we use the latest Mono.Cecil.

CharliePoole avatar Jul 08 '17 02:07 CharliePoole

I guess this adapter also needs https://github.com/nunit/nunit3-vs-adapter/pull/350

DavidKarlas avatar Jul 10 '17 08:07 DavidKarlas

Who wants to take this? /cc @OsirisTerje

jnm2 avatar Jul 12 '17 13:07 jnm2

We should implement nunit/nunit3-vs-adapter#350 although it will not fix this for Update 2 of 2017. Those changes are coming in 15.3 and even now they are hidden behind a feature flag, From the RFC,

While the changes for CLI will be available in a future release, changes for IDE are already available in Visual Studio 2017 Update 3 Preview 3 and newer builds but is hidden behind a feature flag.

rprouse avatar Jul 12 '17 13:07 rprouse

There's a port of nunit/nunit3-vs-adapter#350 to nunit2 here: https://github.com/nunit/nunit-vs-adapter/pull/160. @jnm2 @rprouse @OsirisTerje can you please review this?

codito avatar Oct 25 '17 03:10 codito

Team members receive a notice when you submit a PR but it sometimes takes a few days before someone has time to review it.

CharliePoole avatar Oct 25 '17 04:10 CharliePoole

@codito Will review this as soon as I have 3.9 out for the NUnit3TestAdapter.

OsirisTerje avatar Oct 27 '17 22:10 OsirisTerje

+1 On VS 2017 15.7.2. Changing to full debug symbols fixes the issue.

mclark1129 avatar May 25 '18 21:05 mclark1129