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

ProxyTrace should check for tests locations #1494

Merged
merged 3 commits into from Mar 1, 2021

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Mar 1, 2021

Fixes #1480

This PR:

@sanmai sanmai enabled auto-merge (squash) March 1, 2021 10:42
@sanmai sanmai requested a review from maks-rafalko March 1, 2021 10:43
@@ -108,6 +108,10 @@ public function getTests(): ?TestLocations

public function getAllTestsForMutation(NodeLineRangeData $lineRange, bool $isOnFunctionSignature): iterable
{
if ($this->lazyTestLocations === null) {
return [];
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NodeMutationGenerator does not check if there are tests, just asks for them. It is not their call to know the details, so we're doing it here.

@sanmai sanmai merged commit 31e13ed into infection:0.21 Mar 1, 2021
@sanmai sanmai deleted the pr/2021-03/fix1480 branch March 1, 2021 11:04
@sanmai
Copy link
Member Author

sanmai commented Mar 1, 2021

Ow, how did it automerge without a review?

@sanmai
Copy link
Member Author

sanmai commented Mar 1, 2021

I guess we're all set then!

@maks-rafalko
Copy link
Member

Ow, how did it automerge without a review?

this is because the target is 0.21, not master, and we didn't have "Require approves to merge" setting for 0.* branches. Fixed.

Thank you @sanmai

maks-rafalko pushed a commit that referenced this pull request Mar 1, 2021
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.

None yet

2 participants