massive-oss / mcover

A cross platform code coverage framework for Haxe with testing and profiling applications. Supports AVM1, AVM2, JavaScript, C++, PHP and Neko.
Other
59 stars 9 forks source link

Listing Method Coverage Per Method on Neko #38

Open ashes999 opened 8 years ago

ashes999 commented 8 years ago

Hi,

On Neko, when I run haxelib run munit test -coverage, I get summary info such as:

OVERALL COVERAGE STATS:

    packages    100%       5 / 5      
Tests PASSED under neko using summary client
    files       100%       11 / 11    
    classes     100%       11 / 11    
    methods     82%        41 / 50    
    statements  64.74%     101 / 156  
    branches    32.76%     19 / 58    
    lines       65.97%     661 / 1002 

According to a README file buried deep in the tree, I can add coverage reporting for Neko by adding the following to TestMain.hx:

client.includeMissingBlocks = true;
client.includeExecutionFrequency = true;
client.includeClassAndPackageBreakdowns = true;

It's not clear to me if this change will be obliterated automatically or not. TestMain.hx contains this comment block:

/**
 * Auto generated Test Application.
 * Refer to munit command line tool for more information (haxelib run munit)
 */
class TestMain

Is this the correct way to generate detailed coverage on Neko?