nunit-console icon indicating copy to clipboard operation
nunit-console copied to clipboard

Crashes when NUnit3TestAdapter is present

Open OsirisTerje opened this issue 4 years ago • 8 comments

Nunit.COnsole 3.13 Adapter 4.1 NUnit 3.13.2 netcoreapp3.1

Repro : https://github.com/nunit/nunit3-vs-adapter.issues/tree/master/Issue912

Command: nunit3-console Issue912.dll

Result: image

The adapter has embedded engine DLLs, but the same error happens if these are deleted from the output folder.

OsirisTerje avatar Dec 05 '21 14:12 OsirisTerje

@OsirisTerje It's not clear from the repo project how the console runner gets into your netcoreapp3.1 directory. How is it installed?

CharliePoole avatar Dec 05 '21 15:12 CharliePoole

@CharliePoole It is globally installed, it is not in the same directory

OsirisTerje avatar Feb 19 '22 20:02 OsirisTerje

But you're typing nunit3-console Issue912.dll in that directory. So I was wondering if you used the chocolatey package, the msi, or what? AFAIR only chocolatey sets up an alias.

CharliePoole avatar Feb 19 '22 20:02 CharliePoole

The MSI was used to install it

OsirisTerje avatar Feb 20 '22 09:02 OsirisTerje

OK... I'll install the same way and check it out.

CharliePoole avatar Feb 20 '22 12:02 CharliePoole

I first installed using chocolatey (because it's so much easier) and was able to run without error.

I next uninstalled the chocolatey package and installed the msi. I added the directory containing nunit-console to my path. Got the same error as you.

So, the error is in the msi packaging. I'll investigate further, but consider using the chocolatey install as a workaround. It has the advantages that (1) you don't need to mess with your path and (2) you can add and remove extensions independently.

BTW I like your idea of having a separate repo for bug repros. I think I'll do the same.

CharliePoole avatar Feb 21 '22 17:02 CharliePoole

@OsirisTerje ~~You could also try deleting addins from your install, if you are not using them.~~ DIDN'T WORK!

CharliePoole avatar Feb 21 '22 17:02 CharliePoole

Verified that the problem still exists in 3.15.

CharliePoole avatar Feb 21 '22 17:02 CharliePoole