commit compras3 2811
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-28 18:16:04 +02:00
parent 060c119ba1
commit 1ddabbbdcc
41 changed files with 1341 additions and 138 deletions
+5 -5
View File
@@ -90,9 +90,6 @@ try {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportLegalRulesTest.php', 'tests/Feature/ImportTariffCodesTest.php',
'tests/Feature/ImportReadinessTest.php', 'tests/Feature/ImportBankSupportTest.php', 'tests/Feature/OperationalHealthTest.php', 'tests/Feature/ImportDossierTest.php']];
}
if (in_array('--legal-reference-focused', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportLegalReferenceDraftsTest.php', 'tests/Feature/ImportLegalRulesTest.php']];
}
if (in_array('--legal-amounts-focused', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportLegalEstimatesTest.php', 'tests/Feature/ImportLegalRulesTest.php',
'tests/Feature/ImportEstimatesTest.php', 'tests/Feature/ImportEstimatePlanTest.php', 'tests/Feature/InternalRequisitionCandidateTest.php', 'tests/Feature/RequisitionApprovalLevelsTest.php']];
@@ -176,6 +173,9 @@ try {
if (in_array('--private-audit-focused', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/PrivateAuditExporterTest.php', 'tests/Feature/PrivateAuditSourcesTest.php', 'tests/Feature/PrivateAuditAccessTest.php']];
}
if (in_array('--legal-reference-focused', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportLegalReferenceDraftsTest.php', 'tests/Feature/ImportLegalRulesTest.php']];
}
if (in_array('--requisition-cycles-import-regression', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportEstimatesTest.php', 'tests/Feature/ImportLandedCostsTest.php']];
}
@@ -282,7 +282,7 @@ try {
$commands = [[PHP_BINARY, 'tests/Concurrency/quotation-exchange-worker.php', $database, 'migrate'],
[PHP_BINARY, 'tests/Concurrency/import-legal-corpus-worker.php', $database, 'corpus', substr($corpusArguments[0], strlen('--legal-corpus-root='))]];
}
if (in_array('--legal-http', $argv, true) || in_array('--legal-native-review', $argv, true) || in_array('--expiry-native-review', $argv, true)) {
if (in_array('--legal-http', $argv, true) || in_array('--legal-reference-http', $argv, true) || in_array('--legal-native-review', $argv, true) || in_array('--expiry-native-review', $argv, true)) {
$values = [];
foreach (['--legal-corpus-root=', '--legal-http-candidate=', '--legal-http-manifest='] as $prefix) {
$matches = array_values(array_filter($argv, fn ($value) => str_starts_with($value, $prefix)));
@@ -292,7 +292,7 @@ try {
$values[] = substr($matches[0], strlen($prefix));
}
$commands = [[PHP_BINARY, 'tests/Concurrency/quotation-exchange-worker.php', $database, 'migrate'],
[PHP_BINARY, 'tests/Concurrency/import-legal-http-worker.php', $database, in_array('--expiry-native-review', $argv, true) ? 'expiry-review' : (in_array('--legal-native-review', $argv, true) ? 'legal-review' : 'legal-http'), ...$values]];
[PHP_BINARY, 'tests/Concurrency/import-legal-http-worker.php', $database, in_array('--legal-reference-http', $argv, true) ? 'legal-reference-http' : (in_array('--expiry-native-review', $argv, true) ? 'expiry-review' : (in_array('--legal-native-review', $argv, true) ? 'legal-review' : 'legal-http')), ...$values]];
}
if (in_array('--bank-support-native-only', $argv, true)) {
$commands = [[PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Feature/ImportBankSupportTest.php']];