Download the PHP package grazulex/laravel-tddraft without Composer

On this page you can find all versions of the php package grazulex/laravel-tddraft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-tddraft

Laravel TDDraft

Set up Test-Driven Development environments in Laravel using Pest 3 with dedicated draft testing directories.

[![Latest Version](https://img.shields.io/packagist/v/grazulex/laravel-tddraft)](https://packagist.org/packages/grazulex/laravel-tddraft) [![Total Downloads](https://img.shields.io/packagist/dt/grazulex/laravel-tddraft)](https://packagist.org/packages/grazulex/laravel-tddraft) [![License](https://img.shields.io/github/license/grazulex/laravel-tddraft)](LICENSE.md) [![PHP Version](https://img.shields.io/badge/php-%5E8.3-blue)](https://php.net) [![Laravel Version](https://img.shields.io/badge/laravel-%5E12.19-red)](https://laravel.com) [![Pest Version](https://img.shields.io/badge/pest-%5E3.8-purple)](https://pestphp.com) [![Code Style](https://img.shields.io/badge/code%20style-pint-orange)](https://github.com/laravel/pint)

Overview

Laravel TDDraft helps you practice Test-Driven Development by providing a structured approach to draft testing in Laravel applications. It creates a separate testing environment for experimental tests that won't interfere with your main test suite or CI pipeline.

TDDraft โ†’ CI Workflow

Visual representation of the TDDraft workflow and promotion to CI test suite

The package enables a clean separation between experimental draft tests and production-ready CI tests, allowing you to practice TDD without affecting your deployment pipeline.

โœจ Features

๐Ÿ”ง The Five-Command TDD Workflow

Laravel TDDraft is built around a five-command workflow that enables true Test-Driven Development. This structured approach is the key to the project - it provides a complete TDD cycle from experimentation to production.

๐Ÿ”„ The Complete TDD Flow

The five commands work together in a specific sequence that mirrors the TDD Red-Green-Refactor cycle:

๐Ÿ“‹ Command Reference

Command Role in TDD Flow Description
tdd:init ๐Ÿ—๏ธ Setup Initialize TDDraft environment and configuration with status tracking
tdd:make ๐Ÿงช Red Phase Create a new failing test with unique tracking reference
tdd:test ๐Ÿ”„ Red-Green Cycle Run and iterate on draft tests with automatic status tracking
tdd:list ๐Ÿ“‹ Review List and manage draft tests with status history and filtering
tdd:promote ๐Ÿš€ Graduate Move ready tests to production CI suite with audit trail

๐ŸŽฏ Why This Flow Matters

This five-command sequence is the core innovation of Laravel TDDraft. It solves the common TDD problems:

  1. tdd:init - Creates a separate space for experimental tests
  2. tdd:make - Enables rapid test creation without affecting CI
  3. tdd:test - Allows focused iteration on draft tests only
  4. tdd:list - Provides oversight of your TDD pipeline
  5. tdd:promote - Ensures only ready tests reach production

๐Ÿ” Complete Workflow Example

This workflow keeps your CI clean while enabling true TDD experimentation. Your main test suite never sees failing or experimental tests, but you can still practice proper Red-Green-Refactor cycles.

๐Ÿš€ Quick Start

1. Install the Package

2. Install Pest (Required)

๐Ÿ’ก Laravel TDDraft requires Pest v3.8 or higher:

3. Publish Configuration

4. Initialize TDDraft

This command will:

๐Ÿ›  Usage

Create Draft Tests

Create new TDDraft tests with unique tracking:

Write Draft Tests

The generated test files include unique references and proper grouping:

Run Tests with Status Tracking

Laravel TDDraft provides dedicated commands with automatic status monitoring:

Comprehensive Status Tracking System

Laravel TDDraft now automatically tracks your test execution results:

Comprehensive status tracking features:

Example status file structure:

List and Manage Tests

Use the tdd:list command to view and manage your draft tests:

Example output:

Graduate Tests

When your draft test is ready for production, you have two options for promoting it to your main test suite:

Option 1: Automated Promotion (Recommended)

Use the tdd:promote command with the unique reference for automated promotion:

Option 2: Manual Promotion

For manual control, you can still promote tests manually:

Status Tracking and Test Lineage

The unique reference system with status tracking allows you to:

Advanced status analysis example:

โš™๏ธ Configuration

Status Tracking Configuration

The package configuration is published to config/tddraft.php with comprehensive status tracking options:

Environment-Specific Configuration

Configure different behavior per environment:

๐Ÿงช Example Draft Test

Example of a TDDraft test with unique reference tracking and status monitoring:

Key features demonstrated:

๐Ÿ“š Documentation & Examples

Complete Documentation

For comprehensive documentation, see the docs/ directory:

Practical Examples

The examples/ directory contains comprehensive usage examples:

Examples demonstrate:

๐Ÿ”ง Requirements

๐Ÿค Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

๐Ÿ“„ License

This package is open-source software licensed under the MIT license.


Made with โค๏ธ for the Laravel and Pest community

All versions of laravel-tddraft with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.19
nesbot/carbon Version ^3.10
illuminate/contracts Version ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package grazulex/laravel-tddraft contains the following files

Loading the files please wait ....