-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Running tests from within Visual Studio in a static lib project #275
Comments
Hi! I see that you are using ReSharper. They recently added support for doctest, and I suppose that's what you are testing out. Unfortunately I haven't used ReSharper and haven't tested the integration - I'm not at all familiar with the interface and the mode of running/execution. You should perhaps take this question to them, as I won't be able to look into this any time soon... |
I understand what you are saying. I turned off ReSharper, but now my test is not being discovered by Visual Studio's build in |
I haven't used ReSharper and am not familiar with its interface... If someone else has any experience perhaps they could help with this. Otherwise you could look into the documentation of ReSharper or their support. |
You don't under stand, I turned off ReSharper. Could you please read my last post above? |
Sorry I missed that - I'm just about to go to bed. So... I haven't used the Test Explorer either, but I don't think there is any integration with doctest on the Visual Studio side... ReSharper is the first IDE/tool which integrated doctest in it's test discovery/runner - hopefully others will follow (perhaps I should contact someone for that...). You could still execute the tests by running the compiled binary. This is all I have for now, good night :) |
Good night and sweet dreams! :-) For the morning: I understand now, there is no integration between Regarding this:
Am I to understand from this that the usual and/or normal and/or best and/or optimal way of using |
Solved. Please read here, especially the
|
Thank @onqtam very much, your answers helped me to figure out the proper keywords for Google search. |
I am currently using Google Test. I can happily run my tests from within Visual Studio.
I want to start using
doctest
because the features list says I can use it along side my production code (Google Test cant do it). I have a static lib project in Visua Studio, and I want to run the tests from within Visual Studio. Here is what happens when I click the Test circle thingy (red rectangle in the screenshot) and chooseRun
. Green rectangle is my static lib project. Blue rectangle is myexe
project.Please help me :-) What am I missing?
The text was updated successfully, but these errors were encountered: