-
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
Test disappears from GTA after exception #295
Comments
This is surprising, I haven't seen such behavior before. Can you provide a minimal sample solution which demonstrates the issue? |
Unfortunately I cannot reproduce my issue at the moment. |
I work in the same company as vko-insiders and frequently face the same problem. Steps to reproduce:
You can now build the |
Ok, I have watched the behavior, but this is a rather weird scenario, isn't it? Why would you delete that DLL from outside VS? Anyways. here's what's happening: GTA gets the order from VS to execute the test. However, execution fails due to the missing DLL. GTA recognizes this and prints an according warning: IMHO, this is reasonable behavior, because the test is not available - test discovery would also result in the test not existing (try running GoogleTest.exe on the console after removing that DLL). Btw, I would argue that your solution has a minor issue: The GoogleTest project lacks a reference to the Dll project. In fact, if that reference exists, the described behavior appears to not be possible - might it be a good idea to add that reference? |
This was just a sample solution to reproduce the problem. We faced the problem with external DLLs (mainly from Qt) which were not built in the same solution. If I understood correctly, it would be possible for GTA to report "test not found" as test result which would solve the problem. |
Yes, it can! Feel free to give this build a try... |
Thanks! Will this feature be included in the next release? Again, thanks for implementing it so quickly. |
Yes, it will go intothe next release, and this won't take too long (maybe next weekend). I haven't yet decided which setting will be the default one, though - I might go for Do not report to not change existing behavior... The test message is not as obvious as it appears to you: For instance, perform discovery, comment out a certain test, and run that same test via right-clicking and selecting Run selected tests. Same behavior, although the test executable runs just fine. That's the use case for printing the warning in debug mode as GTA already does... |
Good. I'm looking forward to the next release. Both is OK with me. |
…ng_tests_configurable #295 make behavior for missing tests configurable
Enhancement has been released - enjoy! Closing... |
Thanks. |
Hey, I'm using VS2017 v15.9.16 with GTA 0.16.1.1369 (installed via Tools -> Extensions and Updates).
When there is an unhandled exception during a test execution, the test is disappearing from the GTA-list.
In comparison: When reproducing the same behavior with MS-Test, the test remains with a red error message: Message: Failed to set up the execution context to run the test.
So I think this is a improvement-request to keep tests that failed hard in the GTA-list.
The text was updated successfully, but these errors were encountered: