Add coverage highlighting to IDE

Walter Bright newshound2 at digitalmars.com
Thu Apr 4 10:52:41 PDT 2013


On 3/27/2013 3:10 PM, nazriel wrote:
> On Wednesday, 27 March 2013 at 12:08:00 UTC, alex wrote:
>> On Saturday, 23 March 2013 at 23:14:59 UTC, Walter Bright wrote:
>>> Just an idea for an IDE.
>>>
>>> At the push of a button, run the unittests with -cov on the module being
>>> editted, read the coverage listing file, and then highlight the code lines
>>> that were never executed.
>>
>> How to run only one module('s unittests)? With rdmd? Or just via dmd with a
>> specific flag set?
>
> I think Walter (?) added a flag to dmd:
>   -main          add default main() (e.g. for unittesting)
>
> Maybe runnng dmd with this flag on 1 module and then running it could help?

Yup. That's just what -main is for!


More information about the Digitalmars-d-ide mailing list