parallel testing

This commit is contained in:
Denis Duliçi 2021-01-26 17:59:16 +03:00
parent 9d44ee512b
commit 79978ad0cc
3 changed files with 100 additions and 18 deletions

View File

@ -47,4 +47,4 @@ jobs:
run: composer test
- name: Execute tests
run: vendor/bin/phpunit
run: php artisan test --parallel

View File

@ -56,6 +56,7 @@
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.5",
"brianium/paratest": "^6.1",
"facade/ignition": "^2.3",
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",

115
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c1cf72b37303a856be87365ae1a5671d",
"content-hash": "b5ff7f6b82222fa71c5dee6d019a1f3c",
"packages": [
{
"name": "akaunting/firewall",
@ -4528,16 +4528,16 @@
},
{
"name": "laravel/framework",
"version": "v8.24.0",
"version": "v8.25.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "d16e9f875e4d7609a05d5007393e22ba95efd1fc"
"reference": "05da44d6823c2923597519ac10151f5827a24f80"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/d16e9f875e4d7609a05d5007393e22ba95efd1fc",
"reference": "d16e9f875e4d7609a05d5007393e22ba95efd1fc",
"url": "https://api.github.com/repos/laravel/framework/zipball/05da44d6823c2923597519ac10151f5827a24f80",
"reference": "05da44d6823c2923597519ac10151f5827a24f80",
"shasum": ""
},
"require": {
@ -4624,6 +4624,7 @@
},
"suggest": {
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).",
"brianium/paratest": "Required to run tests in parallel (^6.0).",
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).",
"ext-ftp": "Required to use the Flysystem FTP driver.",
"ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().",
@ -4691,7 +4692,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2021-01-21T14:19:29+00:00"
"time": "2021-01-26T14:40:21+00:00"
},
{
"name": "laravel/tinker",
@ -5712,16 +5713,16 @@
},
{
"name": "markbaker/matrix",
"version": "2.1.1",
"version": "2.1.2",
"source": {
"type": "git",
"url": "https://github.com/MarkBaker/PHPMatrix.git",
"reference": "35a2d1a919a1de732402f694925168c53c17c838"
"reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/35a2d1a919a1de732402f694925168c53c17c838",
"reference": "35a2d1a919a1de732402f694925168c53c17c838",
"url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
"reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
"shasum": ""
},
"require": {
@ -5780,9 +5781,9 @@
],
"support": {
"issues": "https://github.com/MarkBaker/PHPMatrix/issues",
"source": "https://github.com/MarkBaker/PHPMatrix/tree/2.1.1"
"source": "https://github.com/MarkBaker/PHPMatrix/tree/2.1.2"
},
"time": "2021-01-21T13:53:09+00:00"
"time": "2021-01-23T16:37:31+00:00"
},
{
"name": "maximebf/debugbar",
@ -11355,6 +11356,86 @@
},
"time": "2020-12-15T10:57:43+00:00"
},
{
"name": "brianium/paratest",
"version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/paratestphp/paratest.git",
"reference": "235db99a43401d68fdc4495b20b49291ea2e767d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paratestphp/paratest/zipball/235db99a43401d68fdc4495b20b49291ea2e767d",
"reference": "235db99a43401d68fdc4495b20b49291ea2e767d",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-pcre": "*",
"ext-reflection": "*",
"ext-simplexml": "*",
"php": "^7.3 || ^8.0",
"phpunit/php-code-coverage": "^9.2.5",
"phpunit/php-file-iterator": "^3.0.5",
"phpunit/php-timer": "^5.0.3",
"phpunit/phpunit": "^9.5.0",
"sebastian/environment": "^5.1.3",
"symfony/console": "^4.4 || ^5.2",
"symfony/process": "^4.4 || ^5.2"
},
"require-dev": {
"doctrine/coding-standard": "^8.2.0",
"ekino/phpstan-banned-code": "^0.3.1",
"ergebnis/phpstan-rules": "^0.15.3",
"ext-posix": "*",
"infection/infection": "^0.18.2",
"phpstan/phpstan": "^0.12.58",
"phpstan/phpstan-deprecation-rules": "^0.12.5",
"phpstan/phpstan-phpunit": "^0.12.16",
"phpstan/phpstan-strict-rules": "^0.12.5",
"squizlabs/php_codesniffer": "^3.5.8",
"symfony/filesystem": "^5.2.0",
"thecodingmachine/phpstan-strict-rules": "^0.12.1",
"vimeo/psalm": "^4.3.1"
},
"bin": [
"bin/paratest"
],
"type": "library",
"autoload": {
"psr-4": {
"ParaTest\\": [
"src/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Brian Scaturro",
"email": "scaturrob@gmail.com",
"homepage": "http://brianscaturro.com",
"role": "Lead"
}
],
"description": "Parallel testing for PHP",
"homepage": "https://github.com/paratestphp/paratest",
"keywords": [
"concurrent",
"parallel",
"phpunit",
"testing"
],
"support": {
"issues": "https://github.com/paratestphp/paratest/issues",
"source": "https://github.com/paratestphp/paratest/tree/v6.1.2"
},
"time": "2020-12-15T11:41:54+00:00"
},
{
"name": "doctrine/instantiator",
"version": "1.4.0",
@ -11491,16 +11572,16 @@
},
{
"name": "facade/ignition",
"version": "2.5.8",
"version": "2.5.9",
"source": {
"type": "git",
"url": "https://github.com/facade/ignition.git",
"reference": "8e907d81244649c5ea746e2ec30c32c5f59df472"
"reference": "66b3138ecce38024723fb3bfc66ef8852a779ea9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/facade/ignition/zipball/8e907d81244649c5ea746e2ec30c32c5f59df472",
"reference": "8e907d81244649c5ea746e2ec30c32c5f59df472",
"url": "https://api.github.com/repos/facade/ignition/zipball/66b3138ecce38024723fb3bfc66ef8852a779ea9",
"reference": "66b3138ecce38024723fb3bfc66ef8852a779ea9",
"shasum": ""
},
"require": {
@ -11564,7 +11645,7 @@
"issues": "https://github.com/facade/ignition/issues",
"source": "https://github.com/facade/ignition"
},
"time": "2020-12-29T09:12:55+00:00"
"time": "2021-01-26T14:45:19+00:00"
},
{
"name": "facade/ignition-contracts",