www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Measuring test coverage

reply "Alexei Bykov" <alexei4203 yandex.ru> writes:
D has builtin support for coverage analysis but it produces only 
.lst files. This is a bit inconvenient. Is there any tool which 
can create something like an html report from .lst files?
For now I'm using OpenCppCoverage which is not the best tool and 
works only on Windows but at least it produces html reports which 
can be customized (sort of).
Aug 09 2015
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 10/08/2015 8:24 a.m., Alexei Bykov wrote:
 D has builtin support for coverage analysis but it produces only .lst
 files. This is a bit inconvenient. Is there any tool which can create
 something like an html report from .lst files?
 For now I'm using OpenCppCoverage which is not the best tool and works
 only on Windows but at least it produces html reports which can be
 customized (sort of).
Good news, looks like you'll be working on a new D tool ;)
Aug 09 2015
parent "Alexei Bykov" <alexei4203 yandex.ru> writes:
On Monday, 10 August 2015 at 04:03:36 UTC, Rikki Cattermole wrote:
 On 10/08/2015 8:24 a.m., Alexei Bykov wrote:
 D has builtin support for coverage analysis but it produces 
 only .lst
 files. This is a bit inconvenient. Is there any tool which can 
 create
 something like an html report from .lst files?
 For now I'm using OpenCppCoverage which is not the best tool 
 and works
 only on Windows but at least it produces html reports which 
 can be
 customized (sort of).
Good news, looks like you'll be working on a new D tool ;)
Well, it came into my thought to make some helper scripts :
Aug 10 2015
prev sibling parent reply "Stefan Frijters" <sfrijters gmail.com> writes:
On Sunday, 9 August 2015 at 20:24:22 UTC, Alexei Bykov wrote:
 D has builtin support for coverage analysis but it produces 
 only .lst files. This is a bit inconvenient. Is there any tool 
 which can create something like an html report from .lst files?
 For now I'm using OpenCppCoverage which is not the best tool 
 and works only on Windows but at least it produces html reports 
 which can be customized (sort of).
If your code is hosted at Github or similar, https://github.com/ColdenCullen/doveralls allows you to use coveralls.io for D code. Not made by me, but I've been using it for a while now and it works very well for me.
Aug 10 2015
parent "Alexei Bykov" <alexei4203 yandex.ru> writes:
On Monday, 10 August 2015 at 08:06:35 UTC, Stefan Frijters wrote:
 On Sunday, 9 August 2015 at 20:24:22 UTC, Alexei Bykov wrote:
 D has builtin support for coverage analysis but it produces 
 only .lst files. This is a bit inconvenient. Is there any tool 
 which can create something like an html report from .lst files?
 For now I'm using OpenCppCoverage which is not the best tool 
 and works only on Windows but at least it produces html 
 reports which can be customized (sort of).
If your code is hosted at Github or similar, https://github.com/ColdenCullen/doveralls allows you to use coveralls.io for D code. Not made by me, but I've been using it for a while now and it works very well for me.
Thanks for the link. I'll try that.
Aug 10 2015