behat

Implement Behat 4 BDD tests for Laravel 13 and PHP 8.3 applications.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/HubDigitalEPN/HubDigital --skill behat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: behat
Source: https://github.com/HubDigitalEPN/HubDigital/tree/main/.ai/skills/behat-context
Command: npx skills add https://github.com/HubDigitalEPN/HubDigital --skill behat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires behat/mink, laravel-modules, nwidart/laravel-modules, symfony/console, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and operational instructions for implementing Behavior-Driven Development (BDD) tests with Behat 4 in Hub Digital, streamlining the testing process and ensuring code quality.

Core Features & Use Cases

  • Behavior-Driven Development: Implement BDD tests for applications in Hub Digital, following best practices.
  • Integration with Laravel: Utilizes Laravel's architecture for seamless integration and execution.
  • Use Case: When creating or modifying .feature files, Context classes, step definitions, or behat.php configuration in Hub Digital, this Skill provides the necessary guidance and examples.

Quick Start

Activate the behat skill to create or modify BDD tests in Hub Digital.

Frequently Asked Questions about behat

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

FAQPage Schema
How do I write BDD tests for Laravel using Behat?

Behat BDD testing for Laravel involves creating `.feature` files and Context classes with step definitions to validate application behavior in Hub Digital. This Skill guides configuration and implementation using Behat 4 for Laravel 13 and PHP 8.3.

What is needed to configure Behat with PostgreSQL in a Laravel application?

Configuring Behat with PostgreSQL requires setting up `behat.php` and integrating Behat Mink for browser automation within your Laravel 13 environment. This Skill provides operational instructions for database integration in Hub Digital.

Can I use Behat with Laravel Modules for testing modular architectures?

Yes, Behat supports testing modular architectures by integrating nwidart/laravel-modules to isolate and execute behavior-driven tests per module. This Skill guides implementing BDD tests within modular Laravel applications.

How do I create step definitions and Context classes for Behat feature files?

Creating step definitions and Context classes for Behat `.feature` files involves writing PHP 8.3 classes that map Gherkin syntax to executable test logic. This Skill provides the necessary examples and guidance for Hub Digital applications.

Does Behat testing work with Symfony Console components in Laravel applications?

Behat testing integrates with Symfony Console components to execute custom command-line tasks during test suites in Laravel applications. This Skill leverages this dependency for BDD test automation in Hub Digital.