-
Notifications
You must be signed in to change notification settings - Fork 102
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
Improved Test Discovery #121
Comments
Thanks for your feedback and the kudos! I think that I understand your problem. However, what you can always do is provide a regex such as Having said that, your first suggestion should be rather easy to realize if the Your second suggestion, however, has the drawback that we have to parse each project's pdb file only for the matter of figuring out whether it is indeed a Google Test executable. I think that this has performance penalties we are not willing to take. Again, I will discuss this with Jonas. Feel free to add your thoughts on mine :-) |
…indicator file within the same folder (#121)
I'll try out the specific regex'es to see how long they get, thx. Project file: .EXE export. I think you already know the name of the .EXE, so if that exports a specific function, I think that's a very good sign. This will load the .EXE, which might be a performance penalty, but you don't need to load the PDB for this, and the .EXE image is probably 'hot' in many cases. Something like this on the discovery side: static class NativeMethods
} namespace MyCppUnitAdaptor.Helpers And in the test application, main.cpp - or whereever - __declspec(dllexport) void __cdecl I_Am_Truly_A_GoogleTest_APP(void); |
Whoops, not so used to markdown. Hope it works out. The exe export should work just fine. |
btw, if the 'find solution file' doesn't work out, you might consider looking for a file named after the project, like |
Oops, I forgot to update this issue - in fact the "file marker" solution has already been implemented. If you want to give it a try, feel free to use this build (and note the updated Readme.md). We are going to look into the |
…etection #121 improved test executable detection
First: Thanks for the effort on GTA.
Feature request:
I'd like to see some extras on the discovery of tests. In our shop, we're transitioning to GoogleTest, so slowly, so there are still some CPPUnit projects around, and even some C# test .EXE projects around, with names that are not easily masked by a regex, and names that not easy to change due to other dependencies.
So I suggest that GTA test discovery is extended to look for other signs that this is indeed GT runnable, such as:
The text was updated successfully, but these errors were encountered: