Infection PHP
418 posts

Infection PHP
@infection_php
Mutation Testing library for PHP based on AST
Poland เข้าร่วม Temmuz 2017
1 กำลังติดตาม2.3K ผู้ติดตาม

@mattpocockuk There is a native Claude Chrome plugin now code.claude.com/docs/en/chrome
English

Infection 0.32.3 has been released with new `--max-timeouts` and `--with-timeouts` options.
Read the details in this blog post to understand how it helps with speeding up Mutation Testing and why you should start using them!
infection.github.io/2026/01/14/wha…
Thanks @sanmai!
English

🎄 Xmas present
Infection 0.32.0 has been released:
- Format-presering pretty printing
- new GitHub loggers with collapsable sections
- Symfony 8 support; webmozart/assert@v2 support
- and much more
github.com/infection/infe…
English
Infection PHP รีทวีตแล้ว

Looks like #phpunit xml code-coverage generation could get nearly twice as fast in the future.
this would for example considerably reduce overhead of the necessary "initial-test" step when running @infection_php on your project.

English

How to write custom mutators: infection.github.io/guide/custom-m…
English

.@phpstan has added @infection_php for PRs on GH Actions with a set of custom rules 🚀
github.com/phpstan/phpsta…
English

.@xepozz started working on Infection Plugin for @phpstorm, please share your ideas here: github.com/infection/infe…
- What would you like to see?
- How would you use it?
- Where would you want to see Mutants diffs?
Let's make it useful.
English

💡TIP: It's worth to remind that you can use `php://stdout` or `php://stderr` channels to report Infection's details directly to the console when you use it on CI, for example.
Infection PHP@infection_php
The next version of Infection will have an ability to log mutation results directly to stdout/stderr, which is useful for CI. Thank you @duncan3dc
English

We want the PHP open source community to thrive. That's why we're now committed to sponsor 5 open source projects per year: blog.jetbrains.com/phpstorm/2025/…
There's actually one more spot open for 25-26, which project would you suggest we sponsor?
English

Thank you @lambdatesting for sponsoring our Open Source work on Infection.
We already have 4 companies and a bunch of individuals who support us on GitHub.
If you or you company(!) relies on Infection - please support us.
github.com/sponsors/infec…
Thank you all.

English
Infection PHP รีทวีตแล้ว

Blogged about my hands-on experience with @infection_php
Its a short super top level article to give you an overall idea what to expect from it.
what do you think about that? feedback welcome.
staabm.github.io/2025/08/01/inf…
English

@krakjoe Interesting! Will it be possible to install composer packages?
English

Hey #PHP,
em is in a separate repo, I got a working action together and a pipeline ...
Here are 6 versions of php to play with: krakjoe.github.io/em/
github.com/krakjoe/em
#php #wasm

English

Starting from 0.31.0, Infection doesn't mutate uncovered code by default anymore.
Read upgrade guide: github.com/infection/infe…
English
Infection PHP รีทวีตแล้ว

In case you are getting timed-out #mutants while mutation testing with @infection_php (e.g. because of infinite loops), the upcoming release should run faster for you.
on infection/infection with 16 timed-out mutants, we saw a ~21% perf boost 🚀
English

@G_Gilles31 not sure it's clear what needs to be done. Could you please create a feature request on Infection GitHub repo so we can have examples & discussion? Thank you.
English

@infection_php Why not a PHP attribute for Infection on a class that allows specifying a minimum coverage percentage?
For example, the overall project coverage is set to 100%, but for a specific class, we allow 50%.
English

So now we have an experimental @phpstan integration in Infection, by `--static-analysis-plugin=phpstan`.
Let's try to do the same for @psalmphp - created a feature request to make it possible: github.com/vimeo/psalm/di…
Give it some love!
English
Infection PHP รีทวีตแล้ว

past few weeks I have concentrated my opensource efforts onto @infection_php. focus was on developer experience - make it easer for newcomers to apply the tool and reduce noise by removing redundant mutations.
this got just released. feedback welcome.
#dx #mutationtesting


English

@MabarDev Interesting. Would you mind creating an issue so we can discuss it farther on GH?
English

@infection_php No mutating of strings passed to filesystem functions. Fortunately it deleted just the project and not the whole system 😆
Including wrappers like symfony/filesystem
Perhaps phpstan would be able to track that?
English



