Skip to content

✨ Add Copilot instructions for Infection mutation testing framework#2376

Merged
maks-rafalko merged 3 commits into
masterfrom
copilot/fix-2375
Aug 19, 2025
Merged

✨ Add Copilot instructions for Infection mutation testing framework#2376
maks-rafalko merged 3 commits into
masterfrom
copilot/fix-2375

Conversation

Copilot AI commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

This PR adds comprehensive Copilot instructions to help GitHub Copilot better understand and assist with the Infection mutation testing framework.

The .github/copilot-instructions.md file includes:

  • Repository overview: Clear explanation of mutation testing concepts and Infection's purpose
  • Architecture guide: Detailed breakdown of the src/ directory structure and key components
  • Technology stack: PHP 8.2+, Symfony components, and other dependencies
  • Development workflow: Setup instructions, quality assurance commands (make test, make cs, etc.)
  • Coding standards: PSR-12 compliance, strict typing, immutable objects, and type safety
  • Testing philosophy: Unit, integration, and end-to-end testing approaches
  • Common patterns: Examples for mutator implementation, value objects, and configuration classes
  • Performance considerations: Memory efficiency and parallel execution guidance
  • Contribution guidelines: Best practices for maintaining this production-ready tool

This will enable Copilot to provide more accurate and contextually relevant assistance when working with Infection's codebase, understanding its unique requirements as a mutation testing framework that processes large codebases and runs extensive test executions.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

@maks-rafalko 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@maks-rafalko

Copy link
Copy Markdown
Member

@copilot retry, your error is wierd

Co-authored-by: maks-rafalko <3725595+maks-rafalko@users.noreply.github.com>

Copilot AI commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

@copilot retry, your error is wierd

I've successfully created the .github/copilot-instructions.md file for the Infection mutation testing framework. The instructions include comprehensive information about the repository architecture, technology stack, development workflow, coding standards, and contribution guidelines specific to mutation testing. This will help me better understand the codebase and provide more accurate assistance. Commit f2547b0

Copilot AI changed the title [WIP] ✨ Set up Copilot instructions ✨ Add Copilot instructions for Infection mutation testing framework Aug 19, 2025
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md
- Remove setup_environment.sh reference as not needed for Copilot Agent
- Replace quality assurance commands with more practical ones:
  * make autoreview for comprehensive checks before pushing
  * make cs for automatic code style fixes
  * vendor/bin/phpunit commands for testing

Co-authored-by: maks-rafalko <3725595+maks-rafalko@users.noreply.github.com>

@maks-rafalko maks-rafalko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's see if it helps

@maks-rafalko maks-rafalko marked this pull request as ready for review August 19, 2025 20:49
@maks-rafalko maks-rafalko merged commit 41addb4 into master Aug 19, 2025
57 checks passed
@maks-rafalko maks-rafalko deleted the copilot/fix-2375 branch August 19, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants