Download the PHP package boltci/shards without Composer

On this page you can find all versions of the php package boltci/shards. 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 shards

Shards

Unit Tests Integration Tests

Patch PHPUnit and Paratest to shard your Laravel test suite.

Caveats

Both Pest (as of version 4.0.0) and ParaTest (as of version 7.13.0) support test sharding natively, in more robust ways than this package provides.

You should only use this as a last resort if your version of testing framework does not support sharding natively.

Supported Versions

Installation

Install the package via Composer:

Usage

1. Patch PHPUnit

Before running your tests, patch PHPUnit to enable sharding:

This command modifies the PHPUnit test suite builder to shard tests based on your environment configuration.

2. Patch ParaTest

If you're using ParaTest versions between 7.2.0 and 7.4.2, you may need to apply a compatibility patch:

Note: ParaTest 7.4.3 and above have the issue fixed and don't require patching.

3. Run Your Tests

Run your tests with the SHARD environment variable set to specify which shard to run. The format is x/y, where x is the shard number and y is the total number of shards.

You can optionally set the SEED variable to any positive integers to shuffle the test order using a deterministic seed (i.e. the same seed will always produce the same test order):

When using ParaTest (by passing --parallel), include the --functional flag to parallelize by Test to avoid overlaps between shards:

This is useful to help distribute tests more evenly across shards.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of shards with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/testing Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
brianium/paratest Version ^7.2.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 boltci/shards contains the following files

Loading the files please wait ...