mmanela / chutzpah

Chutzpah is an open source JavaScript test runner which enables you to run unit tests using QUnit, Jasmine, Mocha and TypeScript.
http://mmanela.github.io/chutzpah/
Apache License 2.0
550 stars 142 forks source link

VS 2022 can't run tests with Chutzpah installed #815

Open giggio opened 2 years ago

giggio commented 2 years ago

VS test explorer would not run tests anymore when running VS 2022 with the VS 2022 extension for Chutzpah installed. I'm not sure what caused the hanging, I don't even have tests JS tests in this project. I took a memory dump from VS and opened it in VS itself, it gave the clue that the ofender was Chutzpah. Once I uninstalled the extension the problem went away. I'm on VS 17.1.6. These are .NET Framework NUnit tests. I couldn't repro it on a brand new project. I tried git cleaning the project, rebuilding, etc, nothing worked, only uninstalling the extension. The VS Output window, when set to "Tests", only showed "Building Test Projects" when I asked for the test run. The spinner would start, VS would stay at 15% CPU and nothing more would happen. VS was responsive all the time.

This is the stack I got. I'm not sure what caused it:

image

joj commented 1 year ago

We're seeing the same thing. The problem is that the Chutzpah vsix is including System.Memory.dll and that's incompatible with the version in VS/testconsole. My recommendation would be to suppress System.Memory.dll from the vsix. No extension should ship that anyway; the only version that should exist is the one in PublicAssemblies. There are a lot of other versions, though, and that's also wrong. Still, removing that dll from the vsix (or its installation) fixes the test explorer.