Comments (2)
Hello,
while disabling mutating Attributes is not supported out of the box, you can achieve it by global-ignoreSourceCodeByRegex
setting in infection.json5
config:
{
"mutators": {
"@default": true,
"global-ignoreSourceCodeByRegex": [
// to not mutate `nullable: false` to `nullable: true` or `unique: true` as unit tests don't cover it
".*\\#\\[MongoDB\\\\Field.*",
".*\\#\\[ORM\\\\JoinColumn.*",
".*\\#\\[ORM\\\\Column.*"
]
}
}
- https://infection-php.dev/r/zokd - attribute is mutated
- https://infection-php.dev/r/w135 - attribute is NOT mutated
Does it help?
from infection.
Thank you very much @maks-rafalko, it worked!
from infection.
Related Issues (20)
- Release tag shows incorrect version HOT 2
- MulEqual with -1 cannot be fixed HOT 3
- Attribute is removed when `public` is mutated to `protected`
- Compatibility with composer-bin-plugin HOT 3
- Incorrect --filter with PHPUnit 10 HOT 10
- E2E tests fails HOT 5
- Infection reports mutations on impossible to cover parts: PHP Attributes HOT 5
- Uncaught TypeError: PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given HOT 4
- Alternative Badge SVG File as report for use in Gitlab and private Repositories HOT 9
- nikic/php-parser 5 support HOT 3
- Clean project ApiPlatform + PhpUnit 11 + PHP 8.3.x -> nikic/php-parser minimum version bump needed HOT 3
- Upgrade `php-cs-fixer` and add more rules
- Randomly failing test HOT 2
- Gitlab logger errors when run outside git repository HOT 2
- GPG key expired HOT 3
- Excluded sources are being processed for mutation
- Mutations should be skipped base on individual time, not total time HOT 9
- Fail to find testcase from Junit report (Pest) HOT 2
- Support for short circuit evaluation with an assignment statement HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infection.