Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Beautify Specify Laravel Package

barthy-koeln/beautify-specify

Adds colored, more informative terminal output for PHPUnit tests using Codeception/Specify. Install as a dev dependency, set phpunit printerClass to ResultPrinter, and swap in the provided Specify trait to enhance Specify’s output formatting.

View on GitHub
Deep Wiki
Context7

beautify-specify

A simple wrapper to add some color and information to the phpunit/specify terminal output.

Note: This is kiiind of hackaround. But it works.

Output

Image of BeautifySpecify Output

Installation

composer require --dev barthy-koeln/beautify-specify

Usage

Add the following to your phpunit.xml:

<phpunit
  printerClass="BarthyKoeln\BeautifySpecify\ResultPrinter"
/>

Please note that currently the only task of this result printer is not printing any progress or failures. The output is handled entirely in the Specify wrapper.

For each test case, replace any Specify trait with the trait provided by this library. Then, use the Specify framework as always and as described in the documentation.

Example:

use BarthyKoeln\BeautifySpecify\Specify;
use PHPUnit\Framework\TestCase;

class SomeClassTest extends TestCase
{
    use Specify;

    public function testValidation()
    {
        $this->describe(
            'SomeClass',
            function () {
                $this->it(
                    'has the correct default values',
                    function () {
                        $this->assertEquals([3.14159,  2.71828], $this->someClass->getValues());
                    }
                );

                // […]

            }
        );
    }
}
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor