testing-workflow

Automate unit, integration, Behat, and Infection test suites via Make targets.

5|Updated May 30, 2023
One-click install
npx skills add https://github.com/VilnaCRM-Org/core-service --skill testing-workflow-vilnacrm-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-workflow
Source: https://github.com/VilnaCRM-Org/core-service/tree/main/.claude/skills/testing-workflow
Command: npx skills add https://github.com/VilnaCRM-Org/core-service --skill testing-workflow-vilnacrm-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the orchestration and validation of software tests across unit, integration, and end-to-end levels to ensure code quality and reliability.

Core Features & Use Cases

  • Orchestrates unit, integration, Behat, and infection test suites with clear, repeatable commands.
  • Provides guidance and quick access to common test commands and their expected outcomes.
  • Ideal for debugging failures, achieving high coverage, and maintaining fast feedback loops in CI pipelines.

Quick Start

Run the complete test suite for the current codebase using the all-tests command.

Frequently Asked Questions about testing-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate PHPUnit, Behat, and Infection tests end-to-end?

You can orchestrate PHPUnit, Behat, and Infection tests end-to-end by running predefined Make targets like all-tests, which automates the validation of your unit, integration, and E2E suites. This ensures repeatable commands and fast feedback loops.

Do I need Docker to run integration and unit testing workflows?

Yes, you need Docker to run integration and unit testing workflows because the validation process relies on a containerized environment to guarantee deterministic test results. This prevents inconsistencies between local development and CI pipelines.

What is the best way to debug test failures across multiple suites?

The best way to debug test failures across multiple suites is to execute the specific Make targets for the failing suite, such as unit-tests or behat. This isolates the failing tests and provides guidance on expected outcomes to quickly resolve code issues.

Can I use this testing workflow to enforce code coverage targets?

Yes, you can use this testing workflow to enforce code coverage targets by running the Infection Make target. It validates your code quality by applying mutation testing alongside PHPUnit and Behat suites to ensure high coverage.

Why does my test orchestration require specific Make targets?

Your test orchestration requires specific Make targets like integration-tests and infection because the workflow automates validation by directly invoking these predefined commands. This structure ensures consistent execution across unit, integration, and end-to-end levels.