-
-
Notifications
You must be signed in to change notification settings - Fork 377
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 in composer "files" autoload is not collected #958
Comments
@Slamdunk any idea? |
|
You mean by #964? Why it was not covered before - what condition was missing - and is it tested now? |
Yes
Have no idea
Yes, by: |
@Slamdunk it did not fix it retested with the latest version of this repo using atk4/data@f59e169: issue is still present |
I'll have a look on this next week |
As far as I can tell, no issue is present. In the original post of this topic #958 (comment) you reported that line #958 (comment) instead reports that lines |
(original) l |
Of course they are the same, but the issue you are reporting is different.
It doesn't surprise me at all that they are marked as red: composer autoloads |
makes sense, do you think we can introduce some "pre test" coverage? |
I think we should stop worrying about code that is outside of classes and functions. |
maybe in the future |
code: https://github.com/atk4/data/blob/e091b675d32a17d839e918557f3e24ab6211b563/bootstrap-types.php#L49
simple repro code:
does not generate any coverage line (in clover output)
when the statement is added into method body, the coverage is generated, but for some reasons, coverage for statement outside/below method does not - maybe related to clover only, not sure
The text was updated successfully, but these errors were encountered: