Skip to content

Conversation

@jmecosta
Copy link

is this something you can use? redirect tool output to output window and send termination signal once its done so the window requesting input will not show up?

(cherry picked from commit 60a7b19)
@OpenCppCoverage
Copy link
Owner

OpenCppCoverage commented Aug 8, 2017

Hello,

First, I am sorry for my very late answer. I made a break on OpenCppCoverage Plugin to work on OpenCppCoverage and then on other projects. Now I am back on this project!

I am also not fully happy with the current solution that displays a message at the end of the coverage.
Before doing this, I tried to redirect the message to the output window as you did. Unfortunately, output window seems to not support standard input redirection.
As some users may use standard input in their program, we cannot redirect message to the output window.

@jmecosta
Copy link
Author

jmecosta commented Aug 8, 2017 via email

@OpenCppCoverage
Copy link
Owner

Hello,

My main usage of OpenCppCoverage plugin is running unit tests with GTest.
In this case, a console is nice because GTest uses the terminal colours to display the results.

Do you have an use case in which the console is really annoying? Even when running an application, it is useful to see if there is an error at the end.

I try to design OpenCppCoverage to be easy to use and avoid adding several ways of doing the same thing except if there is a noticeable benefit.

OpenCppCoverage

@jmecosta
Copy link
Author

we are using also gtest and we use the visual studio test adapter https://marketplace.visualstudio.com/items?itemName=ChristianSoltenborn.GoogleTestAdapter and there are no pop ups anywhere. maybe thats the difference. the visual studio experience when in comes for testing and coverage tools in typical tools do not show popups, they run in background so they dont take your attention from what your doing. anyway this is just a difference to other coverage tools and test frameworks we use. if you think this is the way, then please close. thanks

@OpenCppCoverage
Copy link
Owner

Hello,

Thank you for this feedback. Indeed, when you run a test from Test Explorer, you do not want to have any windows because you know whether your test failed or not.
Ideally, we would like to run the coverage from Test Explorer and do not display any windows.

Do you know if it is possible to hook this plugin? I had a very quick look and do not see anything obvious.

OpenCppCoverage

@jmecosta
Copy link
Author

jmecosta commented Aug 19, 2017 via email

@jmecosta
Copy link
Author

jmecosta commented Aug 19, 2017 via email

@OpenCppCoverage
Copy link
Owner

Hello,

I am working now on the command line version of OpenCppCoverage and as this developement is not trivial, I have just had it to the roadmap.

OpenCppCoverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants