Skip to content

Commit eb4efbc

Browse files
authored
Split test suite for better parallelism (#3811)
1 parent ccd6009 commit eb4efbc

39 files changed

+51
-40
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/Album/AssertableZipArchive.php renamed to tests/ImageProcessing/Album/AssertableZipArchive.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\Album;
19+
namespace Tests\ImageProcessing\Album;
2020

2121
use App\Image\Files\InMemoryBuffer;
2222
use App\Image\Files\TemporaryLocalFile;

tests/Feature_v2/Album/DownloadTest.php renamed to tests/ImageProcessing/Album/DownloadTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@
1616
* @noinspection PhpUnhandledExceptionInspection
1717
*/
1818

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

2121
use App\Enum\DownloadVariantType;
2222
use App\Image\Files\InMemoryBuffer;
2323
use App\Image\Files\TemporaryLocalFile;
2424
use App\Image\Handlers\ImagickHandler;
2525
use App\Image\Handlers\VideoHandler;
2626
use App\Models\Album;
27-
use App\Models\Configs;
28-
use Illuminate\Support\Facades\Auth;
29-
use Illuminate\Support\Facades\Session;
3027
use function Safe\file_get_contents;
3128
use function Safe\filesize;
3229
use function Safe\fwrite;

tests/Feature_v2/Commands/DecodeGpsLocationsTest.php renamed to tests/ImageProcessing/Commands/DecodeGpsLocationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2018-2025 LycheeOrg.
77
*/
88

9-
namespace Tests\Feature_v2\Commands;
9+
namespace Tests\ImageProcessing\Commands;
1010

1111
use Tests\AbstractTestCase;
1212

tests/Feature_v2/Commands/DiagnosticsTest.php renamed to tests/ImageProcessing/Commands/DiagnosticsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2018-2025 LycheeOrg.
77
*/
88

9-
namespace Tests\Feature_v2\Commands;
9+
namespace Tests\ImageProcessing\Commands;
1010

1111
use Tests\AbstractTestCase;
1212

0 commit comments

Comments
 (0)