romalytvynenko / pest-intellij

The official Pest Plugin for PhpStorm / IntelliJ IDEA

Home Page:https://pestphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Workflow Status (master) Total Downloads Latest Version Latest EAP Version

Pest IntelliJ

This plugin adds support for using Pest PHP inside PHPStorm

Installation

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for "Pest" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...

  • Using Early Access Program (EAP) builds:

    Preferences > Plugins > ⚙️ > Manage plugin repositories

    Add a new entry for https://plugins.jetbrains.com/plugins/eap/14636

    Then search for the plugin and install it as usual.

Configuration

To configure pest to run properly, you need to setup the the proper local test framework

  • Navigate to

    Preferences > Languages & Frameworks > PHP > Test Frameworks

    And add the following two configuration fields:

    Set "Path to Pest Executable" to /path/to/your/project/vendor/pestphp/pest/bin/pest/

    Set the "Test Runner" to /path/to/your/project/phpunit.xml

Resources

For a great video course on how to write tests with Pest, check out Testing Laravel


Plugin based on the IntelliJ Platform Plugin Template.

About

The official Pest Plugin for PhpStorm / IntelliJ IDEA

https://pestphp.com

License:MIT License


Languages

Language:Kotlin 87.1%Language:PHP 12.2%Language:Java 0.6%Language:HTML 0.1%