Quantcast
Channel: opencppcoverage Discussions Rss Feed
Browsing all 235 articles
Browse latest View live

New Post: Getting the coverage of entire solution with VS extension

Hello, In Miscellaneous tab, you can use a config file. See here for available options supported in the config file. Please let me know if it helps, OpenCppCoverage

View Article


New Post: Include all my cpp files

Hello, First, you can try to run OpenCppCoverage without filters (no --sources or --modules). You can also try to run your program in debug mode to avoid inlining or optimization problems....

View Article


New Post: VS2017 support

Hello, I misunderstood your request because I thought you spoke about the plugin version of OpenCppCoverage which require lot more work. The fix to support Visual Studio 2017 executable should be...

View Article

New Post: Coverage per test case

Hi, I would like to know if there is any way to generate code coverage per test case. If not directly, is there any workaround apart from running each test case at a time?

View Article

New Post: Coverage per test case

Hello, OpenCppCoverage does not know anything about the test cases and so it is not possible to do what you want. If you use gtest, you could write a small script that call YOUR_UNIT_TESTS.exe...

View Article


New Post: VS2017 support

Hello, OpenCppCoverage 0.9.6.1 should fix this issue: https://opencppcoverage.codeplex.com/releases/view/631370. Please let me know if you have still the problem. OpenCppCoverage

View Article

New Post: Include all my cpp files

Any tips on getting my Test project pdb to include all the source from the main project? I'm generating a static lib and copying the main projects pdb along side it, but the test project pdb doesn't...

View Article

New Post: Coverage per test case

Thanks a lot for your help. Definitely helped me!

View Article


New Post: Include all my cpp files

Hello, Did you try to run OpenCppCoverage without any filters on your program compiled in debug mode? Are you able to put a breakpoint when debugging your unit tests in one of the file that is not...

View Article


New Post: Include all my cpp files

Yeah it all works fine. If I instantiate a class, it'll show up in the test report. The problem is the source I don't have any coverage on is not included in the report. So if my test project doesn't...

View Article

New Post: Execution halt without further hints

Hello, By looking at the OpenCppCoverage introduction, I am very excited for its functionality and give it a try immediately. I use Microsoft Visual Studio Community 2017 to create a simple C++ project...

View Article

New Post: Execution halt without further hints

Hello, I have just created a default console application with the following code:int main() { if (true) return 0; else return 0; } When I run OpenCppCoverage 0.9.6.1 (x64) with the following command, I...

View Article

New Post: Include all my cpp files

Hello, Let's take an example:MyProject.dll is a dynamic library (dll) that contains 10 non template classes in 10 sources files (cpp). MyTestProject.exe links to MyProject.dll and has a single test...

View Article


New Post: How to get the total number of lines from the cobertura xml report?

Hi, The current coverage element just mentions the total coverage but there's no way to get the absolute number of lines that have been covered (or not covered). How could I retrieve this easily? Cheers

View Article

New Post: Execution halt without further hints

Hi, Looks like some of my test environment issue, I was testing the toy project on the company PC. As I tried exactly the same things on my personal laptop, it works. Maybe there is some privilege...

View Article


New Post: OpenCppCoverage Visual Studio extension 0.9.4.0 is out!

Hello, I am happy to announce OpenCppCoverage Visual Studio extension 0.9.4.0 is out! You can install it from Visual Studio Gallery page or directly from Visual Studio by searching for OpenCppCoverage...

View Article

New Post: How to get the total number of lines from the cobertura xml report?

Hello, Cobertura is a XML format for Cobertura Jenkins plugin and so this information cannot be added directly to the XML. You can compute it easily by counting the tag line. If hits attribute is "1"...

View Article


New Post: Is there any way to specify source code locale?

Hi!! I'm using OpenCppCoverage to produce html output from source codes contains non-latin characters. (which happens to be shift-jis) As the result, I got garbled output. Is there any way to specify...

View Article

New Post: remove to ask "enter press key"

When we run the OpenCppCoverage from window command prompt or batch script, after creating the report, it ask to enter the press key to complete it. How can we remove this restriction from...

View Article

New Post: all code of source that would be tested does not exist

hi:if i limit the source code ,i cannot get a valid html.

View Article
Browsing all 235 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>