Skip to content
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

Listing Method Coverage Per Method on Neko #38

Open
ashes999 opened this issue Feb 25, 2016 · 0 comments
Open

Listing Method Coverage Per Method on Neko #38

ashes999 opened this issue Feb 25, 2016 · 0 comments

Comments

@ashes999
Copy link

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?

@ashes999 ashes999 changed the title Listing Method Coverage Per Method Listing Method Coverage Per Method on Neko Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant