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

Coverage on abstract functions? #56

Open
haath opened this issue Feb 20, 2022 · 1 comment
Open

Coverage on abstract functions? #56

haath opened this issue Feb 20, 2022 · 1 comment

Comments

@haath
Copy link

haath commented Feb 20, 2022

Hello, I have a project where the only Haxe type under src/ is an abstract.

However it appears that mcover does not count abstracts as types when calculating coverage?
Because even though all tests run (or fail) as they should, in the output I get the following:

----------------------------------------------------------------
OVERALL COVERAGE STATS:
    packages    0%         0 / 0      
    files       0%         0 / 0      
    classes     0%         0 / 0      
    methods     0%         0 / 0      
    statements  0%         0 / 0      
    branches    0%         0 / 0      
    lines       0%         0 / 0      
----------------------------------------------------------------
COVERAGE RESULT     0%         
----------------------------------------------------------------
utest/ui/text/PrintReport.hx:52: 
assertations: 20
successes: 20
errors: 0
failures: 0
warnings: 0
execution time: 0.004
results: ALL TESTS OK (success: true)
(unknown) : Warning : No classes match criteria in MCover macro:
(unknown) : ... 	packages: [],
(unknown) : ... 	classPaths: [/builds/haath/bytesize/src],
(unknown) : ... 	exclusions: []

Is this intended? Should abstract type functions not count for coverage?

@elsassph
Copy link
Contributor

mcover was created before abstract types were introduced. There certainly can be gaps.

Unfortunately at the moment there isn't an active maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants