Skip to content

Commit 81a7067

Browse files
committed
split test suite for better parallelism
1 parent ccd6009 commit 81a7067

26 files changed

+38
-24
lines changed

.github/workflows/php_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- Feature_v2
3232
- Install
3333
- Webshop
34+
- ImageProcessing
3435
exclude:
3536
# Some skips to reduce the number of runs
3637
- php-version: 8.4
@@ -39,6 +40,8 @@ jobs:
3940
test-suite: Feature_v2
4041
- php-version: 8.4
4142
test-suite: Webshop
43+
- php-version: 8.4
44+
test-suite: ImageProcessing
4245
# Service containers to run with `container-job`
4346
services:
4447
# Label used to access the service container

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ test_webshop:
148148
test_install:
149149
vendor/bin/phpunit --testsuite Install --stop-on-failure --stop-on-error --no-coverage --log-junit report_install.xml
150150

151+
test_ImageProcessing:
152+
vendor/bin/phpunit --testsuite ImageProcessing --stop-on-failure --stop-on-error --no-coverage --log-junit report_imageprocessing.xml
153+
151154
test_v2:
152155
vendor/bin/phpunit --testsuite Feature_v2 --stop-on-failure --stop-on-error --no-coverage --log-junit report_v2.xml
153156

codecov.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ codecov:
33
require_ci_to_pass: true
44
notify:
55
wait_for_ci: true
6-
after_n_builds: 15
6+
after_n_builds: 18
77
comment:
88
behavior: default
99
require_base: false
@@ -24,7 +24,6 @@ ignore:
2424
- "^app/Console/.*"
2525
- "^app/Exceptions/.*"
2626
- "^app/Http/Middleware/VerifyCsrfToken.*"
27-
- "^app/Http/Middleware/VerifyCsrfToken.*"
2827
- "^app/Providers/BroadcastServiceProvider.*"
2928
- "^app/Jobs/UploadSizeVariantToS3Job.php"
3029
# We do not test those

phpunit.ci.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<testsuite name="Install">
2121
<directory suffix="Test.php">./tests/Install</directory>
2222
</testsuite>
23+
<testsuite name="ImageProcessing">
24+
<directory suffix="Test.php">./tests/ImageProcessing</directory>
25+
</testsuite>
2326
<testsuite name="Webshop">
2427
<directory suffix="Test.php">./tests/Webshop</directory>
2528
<exclude>./tests/Webshop/BaseCheckoutControllerTest.php</exclude>

phpunit.pgsql.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<testsuite name="Install">
2121
<directory suffix="Test.php">./tests/Install</directory>
2222
</testsuite>
23+
<testsuite name="ImageProcessing">
24+
<directory suffix="Test.php">./tests/ImageProcessing</directory>
25+
</testsuite>
2326
<testsuite name="Webshop">
2427
<directory suffix="Test.php">./tests/Webshop</directory>
2528
<exclude>./tests/Webshop/BaseCheckoutControllerTest.php</exclude>

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<testsuite name="Install">
2121
<directory suffix="Test.php">./tests/Install</directory>
2222
</testsuite>
23+
<testsuite name="ImageProcessing">
24+
<directory suffix="Test.php">./tests/ImageProcessing</directory>
25+
</testsuite>
2326
<testsuite name="Webshop">
2427
<directory suffix="Test.php">./tests/Webshop</directory>
2528
<exclude>./tests/Webshop/BaseCheckoutControllerTest.php</exclude>

tests/Feature_v2/Image/Handlers/BaseImageHandler.php renamed to tests/ImageProcessing/Image/Handlers/BaseImageHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @noinspection PhpUnhandledExceptionInspection
1717
*/
1818

19-
namespace Tests\Feature_v2\Image\Handlers;
19+
namespace Tests\ImageProcessing\Image\Handlers;
2020

2121
use App\Facades\Helpers;
2222
use App\Models\Configs;

tests/Feature_v2/Image/Handlers/PhotosAddHandlerGDTest.php renamed to tests/ImageProcessing/Image/Handlers/PhotosAddHandlerGDTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @noinspection PhpUnhandledExceptionInspection
1717
*/
1818

19-
namespace Tests\Feature_v2\Image\Handlers;
19+
namespace Tests\ImageProcessing\Image\Handlers;
2020

2121
use Tests\Constants\TestConstants;
2222
use Tests\Traits\InteractsWithRaw;

tests/Feature_v2/Image/Handlers/PhotosAddHandlerImagickTest.php renamed to tests/ImageProcessing/Image/Handlers/PhotosAddHandlerImagickTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @noinspection PhpUnhandledExceptionInspection
1717
*/
1818

19-
namespace Tests\Feature_v2\Image\Handlers;
19+
namespace Tests\ImageProcessing\Image\Handlers;
2020

2121
use Tests\Constants\TestConstants;
2222
use Tests\Traits\InteractsWithRaw;

tests/Feature_v2/Image/WatermarkerTest.php renamed to tests/ImageProcessing/Image/WatermarkerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
* @noinspection PhpUnhandledExceptionInspection
1717
*/
1818

19-
namespace Tests\Feature_v2\Image;
19+
namespace Tests\ImageProcessing\Image;
2020

2121
use App\Image\Watermarker;
2222
use App\Models\AccessPermission;
2323
use App\Models\Configs;
2424
use Illuminate\Support\Facades\Auth;
2525
use Tests\Constants\TestConstants;
26-
use Tests\Feature_v2\Image\Handlers\BaseImageHandler;
26+
use Tests\ImageProcessing\Image\Handlers\BaseImageHandler;
2727
use Tests\Traits\InteractsWithRaw;
2828
use Tests\Traits\RequireSE;
2929
use Tests\Traits\RequiresImageHandler;

0 commit comments

Comments
 (0)