A large-scale artificial PHP codebase designed for benchmarking and profiling Infection mutation testing framework performance.
This repository provides a substantial codebase with comprehensive test coverage to evaluate Infection's performance under realistic conditions. The codebase is automatically generated to ensure consistency and scalability.
infection-benchmark-source/
├── src/
│ ├── AutoGenerated/ # Auto-generated source classes
│ └── ... # Other (non-autogenerated) code
├── tests/
│ └── AutoGenerated/ # Auto-generated PHPUnit tests
├── code-generator/ # Code generation tooling
└── dist/coverage/ # Generated (template) coverage reports
Generate code coverage reports for benchmarking:
make generate_coverageThis command:
- Executes the PHPUnit test suite with Xdebug coverage enabled
- Generates XML coverage reports in
dist/coverage/xml/ - Generates JUnit test reports in
dist/coverage/junit.xml - Normalizes absolute paths in reports for reusability.
Regenerate all auto-generated source and test files:
make generate_codesrc/AutoGenerated/ and tests/AutoGenerated/ are auto-generated.
Do not modify them manually as changes will be overwritten.
Execute the test suite without coverage:
make phpunitmake helpTo add new auto-generated code patterns, see the code-generator README.
This project is licensed under the MIT License.