www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub coverage analysis weirdness

reply FreeSlave <freeslave93 gmail.com> writes:
I made example and described issue in github repository:

https://github.com/MyLittleRobo/dub-coverage-test
Mar 21 2016
parent reply Sebastiaan Koppe <mail skoppe.eu> writes:
On Monday, 21 March 2016 at 22:34:50 UTC, FreeSlave wrote:
 I made example and described issue in github repository:

 https://github.com/MyLittleRobo/dub-coverage-test
When doing -b unittest-cov dub only builds the current package in unittest-cov mode, all the dependencies are just build in their default mode. It makes sense since you don't want to run their unittests, just your own.
Mar 22 2016
parent reply FreeSlave <freeslave93 gmail.com> writes:
On Tuesday, 22 March 2016 at 07:35:37 UTC, Sebastiaan Koppe wrote:
 On Monday, 21 March 2016 at 22:34:50 UTC, FreeSlave wrote:
 I made example and described issue in github repository:

 https://github.com/MyLittleRobo/dub-coverage-test
When doing -b unittest-cov dub only builds the current package in unittest-cov mode, all the dependencies are just build in their default mode. It makes sense since you don't want to run their unittests, just your own.
Then why does it show that unittest of dependency runs too? Every line is marked as executed once in the unittest of dependency.
Mar 22 2016
parent Sebastiaan Koppe <mail skoppe.eu> writes:
On Tuesday, 22 March 2016 at 08:56:16 UTC, FreeSlave wrote:
 Then why does it show that unittest of dependency runs too? 
 Every line is marked as executed once in the unittest of 
 dependency.
You are right. Now I don't understand either... Btw: I am using codecov.io and it does get the coverage correctly. you just run `bash <(curl -s https://codecov.io/bash)` after a dub unittest-cov run and it will collect and upload.
Mar 22 2016