-
Notifications
You must be signed in to change notification settings - Fork 2
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
Estimation of code coverage #20
Comments
Most IDEs will report how much of the code is covered. Most notably, non-enterprise editions of Visual Studio use a plug-in OpenCover to do so. |
OpenCover is Microsoft and seems a "code coverage tool [only] for .NET 2 and above (Windows OSs only - no MONO)". I would favor a solution that would integrate well with a CI. What do you think about using coveralls? I set it up for our rSOILWAT2 repository badge - via travis CI. They appear to integrate with c/c++ github repositories and travis. |
I am just realizing that the OpenCover repository is using coveralls for themselves as well! |
Coveralls looks like a nice tool and appears to integrate well with GitHub. I don't see any better option. I noticed that for rSOILWAT2, code coverage takes into account the src folder. Do we want this? As a side note, when you click a file within src, coveralls cannot find the file. |
I opened an issue for that in rSOILWAT2. However, it is to be expected that https://coveralls.io cannot find the source files from SOILWAT2 within the src/ folder in the rSOILWAT2 repository. This is because SOILWAT2 is only a submodule in rSOILWAT2. No? |
Yes I assume it's because of the submodule, though GitHub can access submodule files just fine, so it's probably just coveralls not being able to access the SOILWAT2 repo (or a lack of submodule support). |
- close #20 - makefile gained targets to estimate code coverage * 'make cov' = same as 'make test' but with code coverage support * 'make cov_run' = run unit tests and gcov on each source file (which were in a previous step compiled with 'make cov') - new bash script 'run_gcov.sh' which executes 'gcov' for each source file; used by 'make cov_run' - updated travis-ci yml to run code coverage unit tests and connect to 'codecov' server
The text was updated successfully, but these errors were encountered: