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
Ignore bogus "not installed" exception from PackageVersions #1151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to Infection. We noticed you didn't add any tests. Could you please add them to make sure everything works as expected?
// We have a bogus exception: how can Infection be not installed if we're here? | ||
$version = 'not-installed'; | ||
} | ||
// @codeCoverageIgnoreEnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens in very peculiar circumstances which, I think, just not worth the time to be reproduced, even with an E2E test. Therefore not covered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what version will be displayed there? Wasn't a case also when you were globally installing infection with --no-scripts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With --no-scripts
there's no exception here, IIRC. That issue is still open #876
Thank you @maks-rafalko |
Fixes #1148