friends-of-behat/mink-debug-extension
Behat extension that logs Mink debug info after each failed step—ideal for CI runs. Saves page content and, with supported drivers, optional screenshots. Configurable log directory plus clean-start and screenshot options.
mink-debug-extension is a Behat-specific debugging tool, designed to enhance test execution visibility by logging and visualizing Mink (browser/HTTP driver) interactions. It is not a core framework component but a testing/debugging utility, making it a complementary tool rather than a foundational dependency.friendsofphp/php-css-selector, behat/mink-selenium2-driver) may introduce external HTTP/browser dependencies.behat.yml and enable via extensions key.extensions:
FriendsOfBehat\MinkDebugExtension\Extension:
default: true
tests/Feature).--verbose or custom Symfony Profiler integration if debugging needs are simpler.| Component | Laravel Fit | Notes |
|---|---|---|
| Behat | ⚠️ Low | Not native; requires parallel tooling. |
| Mink (Goutte) | ✅ High | Works for HTTP scraping. |
| Mink (Selenium) | ⚠️ Medium | Needs WebDriver setup (Docker/SA). |
| Debug Extension | ✅ High | Pure Behat layer; no Laravel changes. |
pest-plugin-laravel) offer similar debugging.tests/behat directory.behat.yml with the debug extension../vendor/bin/behat --tags=@debug.artisan to trigger Behat (custom script).php artisan behat --config=behat.yml
- name: Run Behat Tests
run: ./vendor/bin/behat --config=behat.yml --no-debug
Session middleware).phpunit.xml or composer scripts).facebook/webdriver for Selenium)..env variables).--no-debug in CI and **Laravel’s `--How can I help you explore Laravel packages today?