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

Add support for Pest test framework #1516

Merged
merged 8 commits into from May 13, 2021
Merged

Conversation

maks-rafalko
Copy link
Member

@maks-rafalko maks-rafalko commented May 3, 2021

This PR:

What is Pest?

This is a test framework built on top of PHPUnit and very similar to Jest from JS ecosystem. It's getting more and more popular, espesially in Laravel ecosystem.

Why is it on infection/infection package instead of in a separate infection/pest-test-framework-adapter?

Because recently we decided to leave PHPUnit inside the core. And since Pest is really just a wrapper around PHPUnit, even in the code it is just a decorator around PhpUnitAdapter.php class. So it does make sense to store it here to not copy paste and maintain the same code in a different package.

Misc

Pest maintainers helped us to add support of JUnit report for Pest: pestphp/pest#291, so it works as quick as PHPUnit adapter - with running only those tests that cover mutation.

I'm going to write some docs here at Infection and for Pest, and we are good to go with 0.23.0 release.

@maks-rafalko maks-rafalko added this to the 0.23.0 milestone May 3, 2021
@sanmai sanmai self-requested a review May 4, 2021 01:12
@maks-rafalko
Copy link
Member Author

maks-rafalko commented May 4, 2021

rebased on master - removed code coverage ignorer from Pest adapter as well

@maks-rafalko
Copy link
Member Author

added docs, ready for review

@nunomaduro
Copy link

nunomaduro commented May 12, 2021

@maks-rafalko All ready in our side. Thank your help on this!

@maks-rafalko maks-rafalko merged commit 792a158 into master May 13, 2021
@maks-rafalko maks-rafalko deleted the feature/pest-adapter branch May 13, 2021 07:00
@maks-rafalko
Copy link
Member Author

let's get it merged, going to release tonight

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

Successfully merging this pull request may close these issues.

None yet

2 participants