csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
143 stars 100 forks source link

Debug Error crash at startup #325

Closed edenroz closed 3 years ago

edenroz commented 3 years ago

Version: GoogleTestAdapter 0.10.1.7 from VS marketplace Visual Studio 15.19.35

As soon i start up VS or click "run all" i get this error: image If i delete the .vs directory everythng works again untill reboot.

I'll test this issue with Visual Studio 15.19.36 asap.

csoltenborn commented 3 years ago

I think this is because your test executable crashes (probably already at test discovery time), and that you trigger test discovery by deleting the .vs directory. You can check this by running the executable from the command line - it will probably still crash.

You can "simulate" test discovery by configuring your solution such that the test in question can be run via F5 (i.e., pass the test discovery arguments at Project properties -> Configuration Properties -> Debugging -> Command Arguments) and then step through your test executable. See also trouble shooting section.

Note that if I remember correctly, the used arguments for invocation of the test executable are printed to the Test output window if GTA's Debug mode is enabled, so you can get them from there (and use them for the above "run via command line" and "run via F5" options).

csoltenborn commented 3 years ago

Closed due to inactivity...