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

Ignore bogus "not installed" exception from PackageVersions #1151

Merged
merged 3 commits into from Mar 11, 2020

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Mar 11, 2020

Fixes #1148

Copy link

@tests-checker tests-checker bot left a 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
Copy link
Member Author

@sanmai sanmai Mar 11, 2020

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.

Copy link
Member

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?

Copy link
Member Author

@sanmai sanmai Mar 11, 2020

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

@sanmai sanmai merged commit 7a8aae5 into infection:master Mar 11, 2020
@sanmai sanmai deleted the pr/2020-03/Versions branch March 11, 2020 04:44
@sanmai
Copy link
Member Author

sanmai commented Mar 11, 2020

Thank you @maks-rafalko

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

Successfully merging this pull request may close these issues.

Infection no longer works via a composer global install?
3 participants