commit21
This commit is contained in:
@@ -31,6 +31,39 @@ $quotationTasks = in_array('--quotation-tasks', $argv ?? [], true);
|
||||
$organizationPreview = in_array('--organization-preview', $argv ?? [], true);
|
||||
$pilotAccessProposal = in_array('--pilot-access-proposal', $argv ?? [], true);
|
||||
$formalTasks = in_array('--formal-tasks', $argv ?? [], true);
|
||||
$supplyTasks = in_array('--supply-tasks', $argv ?? [], true);
|
||||
$historyTasks = in_array('--history-tasks', $argv ?? [], true);
|
||||
$suggestionTasks = in_array('--suggestion-tasks', $argv ?? [], true);
|
||||
$alternativeTasks = in_array('--alternative-tasks', $argv ?? [], true);
|
||||
$supplierTasks = in_array('--supplier-tasks', $argv ?? [], true);
|
||||
$dispositionTasks = in_array('--disposition-tasks', $argv ?? [], true);
|
||||
$inventoryTasks = in_array('--inventory-tasks', $argv ?? [], true);
|
||||
$lotTasks = in_array('--lot-tasks', $argv ?? [], true);
|
||||
$improvementTasks = in_array('--improvement-tasks', $argv ?? [], true);
|
||||
$qualityTasks = in_array('--quality-tasks', $argv ?? [], true);
|
||||
$coordinationTasks = in_array('--coordination-tasks', $argv ?? [], true);
|
||||
$lotQualityTasks = in_array('--lot-quality-tasks', $argv ?? [], true);
|
||||
$lotPagination = in_array('--lot-pagination', $argv ?? [], true);
|
||||
$supplyPagination = in_array('--supply-pagination', $argv ?? [], true);
|
||||
$correctionPagination = in_array('--correction-pagination', $argv ?? [], true);
|
||||
$reservationSources = in_array('--reservation-sources', $argv ?? [], true);
|
||||
$historySources = in_array('--history-sources', $argv ?? [], true);
|
||||
$policySources = in_array('--policy-sources', $argv ?? [], true);
|
||||
$correctionSources = in_array('--correction-sources', $argv ?? [], true);
|
||||
$supplyLineSources = in_array('--supply-line-sources', $argv ?? [], true);
|
||||
$coordinationFilters = in_array('--coordination-filters', $argv ?? [], true);
|
||||
$coordinationExport = in_array('--coordination-export', $argv ?? [], true);
|
||||
$taskDeadlines = in_array('--task-deadlines', $argv ?? [], true);
|
||||
$noticeConsultation = in_array('--notice-consultation', $argv ?? [], true);
|
||||
$agreementSources = in_array('--agreement-sources', $argv ?? [], true);
|
||||
$mfaFoundation = in_array('--mfa-foundation', $argv ?? [], true);
|
||||
$mfaManagement = in_array('--mfa-management', $argv ?? [], true);
|
||||
$requisitionAudit = in_array('--requisition-audit', $argv ?? [], true);
|
||||
$auditPagination = in_array('--audit-pagination', $argv ?? [], true);
|
||||
$neededAttention = in_array('--needed-attention', $argv ?? [], true);
|
||||
$approvedAttention = in_array('--approved-attention', $argv ?? [], true);
|
||||
$replenishmentHealth = in_array('--replenishment-health', $argv ?? [], true);
|
||||
$receiptBlock = in_array('--receipt-block', $argv ?? [], true);
|
||||
$inbox = in_array('--inbox', $argv ?? [], true) || $transport;
|
||||
$warehouse = in_array('--warehouse', $argv ?? [], true) || $pilot || $workdesk || $readiness;
|
||||
try {
|
||||
@@ -77,7 +110,135 @@ try {
|
||||
if ($formalTasks) {
|
||||
$tests = ['tests/Feature/FormalAdmissionTest.php', 'tests/Feature/FormalRecommendationTest.php', 'tests/Feature/DocumentaryQualificationTest.php'];
|
||||
}
|
||||
$process = new Process([PHP_BINARY, 'vendor/bin/pest', '--compact', ...$tests, ...($formalTasks ? ['--filter=formal task'] : ($quotationTasks ? ['--filter=quotation tasks'] : ($awardTasks ? ['--filter=task inbox'] : [])))], dirname(__DIR__), $environment, timeout: $financeIntegration || $awardTasks || $quotationTasks || $organizationPreview || $pilotAccessProposal || $formalTasks ? 300 : 120);
|
||||
if ($supplyTasks) {
|
||||
$tests = ['tests/Feature/SupplyTaskIntegrationTest.php', 'tests/Feature/AutomaticPurchasesTest.php'];
|
||||
}
|
||||
if ($historyTasks) {
|
||||
$tests = ['tests/Feature/SupplyHistoryTest.php', 'tests/Feature/WarehousePilotReadinessTest.php'];
|
||||
}
|
||||
if ($suggestionTasks) {
|
||||
$tests = ['tests/Feature/SupplySuggestionsTest.php'];
|
||||
}
|
||||
if ($alternativeTasks) {
|
||||
$tests = ['tests/Feature/SupplyCoordinationTest.php'];
|
||||
}
|
||||
if ($supplierTasks) {
|
||||
$tests = ['tests/Feature/SupplierMaintenanceTest.php'];
|
||||
}
|
||||
if ($dispositionTasks) {
|
||||
$tests = ['tests/Feature/InventoryDispositionsTest.php'];
|
||||
}
|
||||
if ($inventoryTasks) {
|
||||
$tests = ['tests/Feature/InventoryDispositionsTest.php', 'tests/Feature/InventoryReversalsTest.php'];
|
||||
}
|
||||
if ($lotTasks) {
|
||||
$tests = ['tests/Feature/InventoryLotsTest.php'];
|
||||
}
|
||||
if ($improvementTasks) {
|
||||
$tests = ['tests/Feature/SupplierImprovementTest.php'];
|
||||
}
|
||||
if ($qualityTasks) {
|
||||
$tests = ['tests/Feature/SupplierEvaluationTest.php', 'tests/Feature/SupplierResponseTest.php'];
|
||||
}
|
||||
if ($coordinationTasks) {
|
||||
$tests = ['tests/Feature/SupplyCoordinationTest.php', 'tests/Feature/InventoryReversalsTest.php'];
|
||||
}
|
||||
if ($lotQualityTasks) {
|
||||
$tests = ['tests/Feature/InventoryLotsTest.php'];
|
||||
}
|
||||
if ($lotPagination) {
|
||||
$tests = ['tests/Feature/InventoryLotsTest.php'];
|
||||
}
|
||||
if ($supplyPagination) {
|
||||
$tests = ['tests/Feature/SupplyPaginationTest.php', 'tests/Feature/SupplyHistoryTest.php'];
|
||||
}
|
||||
if ($correctionPagination) {
|
||||
$tests = ['tests/Feature/InventoryCorrectionPaginationTest.php'];
|
||||
}
|
||||
if ($reservationSources) {
|
||||
$tests = ['tests/Feature/SupplyCoordinationTest.php', 'tests/Feature/InventoryReversalsTest.php'];
|
||||
}
|
||||
if ($historySources) {
|
||||
$tests = ['tests/Feature/SupplyHistoryTest.php'];
|
||||
}
|
||||
if ($policySources) {
|
||||
$tests = ['tests/Feature/SupplySuggestionsTest.php'];
|
||||
}
|
||||
if ($correctionSources) {
|
||||
$tests = ['tests/Feature/InventoryCorrectionPaginationTest.php'];
|
||||
}
|
||||
if ($supplyLineSources) {
|
||||
$tests = ['tests/Feature/SupplyCoordinationTest.php'];
|
||||
}
|
||||
if ($coordinationFilters || $coordinationExport) {
|
||||
$tests = ['tests/Feature/SupplyCoordinationTest.php'];
|
||||
}
|
||||
if ($taskDeadlines) {
|
||||
$tests = ['tests/Feature/WorkflowTaskInboxTest.php', 'tests/Feature/SupplyCoordinationTest.php'];
|
||||
}
|
||||
if ($noticeConsultation) {
|
||||
$tests = ['tests/Feature/InternalRequisitionCandidateTest.php'];
|
||||
}
|
||||
if ($agreementSources) {
|
||||
$tests = ['tests/Feature/SupplyPaginationTest.php'];
|
||||
}
|
||||
if ($mfaFoundation) {
|
||||
$tests = ['tests/Feature/Auth/TwoFactorFoundationTest.php'];
|
||||
}
|
||||
if ($mfaManagement) {
|
||||
$tests = ['tests/Feature/Settings/TwoFactorManagementTest.php'];
|
||||
}
|
||||
if ($requisitionAudit || $auditPagination) {
|
||||
$tests = ['tests/Feature/InternalRequisitionCandidateTest.php'];
|
||||
}
|
||||
if ($neededAttention || $approvedAttention) {
|
||||
$tests = ['tests/Feature/ProcurementReportsTest.php'];
|
||||
}
|
||||
if ($replenishmentHealth) {
|
||||
$tests = ['tests/Feature/ReplenishmentHealthTest.php'];
|
||||
}
|
||||
if ($receiptBlock) {
|
||||
$tests = ['tests/Feature/ReceiptDocumentBlockTest.php'];
|
||||
}
|
||||
$filter = match (true) {
|
||||
$receiptBlock => ['--filter=receipt document block'],
|
||||
$replenishmentHealth => ['--filter=replenishment health'],
|
||||
$approvedAttention => ['--filter=approved attention reports'],
|
||||
$neededAttention => ['--filter=needed attention report'],
|
||||
$auditPagination => ['--filter=requisition audit export'],
|
||||
$requisitionAudit => ['--filter=requisition audit export'],
|
||||
$mfaManagement => ['--filter=mfa management'],
|
||||
$mfaFoundation => ['--filter=two factor foundation'],
|
||||
$agreementSources => ['--filter=agreement source search'],
|
||||
$noticeConsultation => ['--filter=notice consultation'],
|
||||
$taskDeadlines => ['--filter=task deadline'],
|
||||
$coordinationExport => ['--filter=coordination export'],
|
||||
$coordinationFilters => ['--filter=coordination record filters'],
|
||||
$supplyLineSources => ['--filter=supply line search'],
|
||||
$correctionSources => ['--filter=older selected|correction source search'],
|
||||
$policySources => ['--filter=policy source search'],
|
||||
$historySources => ['--filter=history source search'],
|
||||
$reservationSources => ['--filter=reservation source search|coordination task returns'],
|
||||
$supplyPagination => ['--filter=supply pagination'],
|
||||
$lotPagination => ['--filter=lot pagination'],
|
||||
$lotQualityTasks => ['--filter=lot quality task'],
|
||||
$coordinationTasks => ['--filter=coordination task'],
|
||||
$qualityTasks => ['--filter=quality task|response task'],
|
||||
$improvementTasks => ['--filter=improvement task'],
|
||||
$lotTasks => ['--filter=lot setup task'],
|
||||
$inventoryTasks => ['--filter=disposition task|reversal task'],
|
||||
$dispositionTasks => ['--filter=disposition task'],
|
||||
$supplierTasks => ['--filter=supplier task'],
|
||||
$alternativeTasks => ['--filter=alternative task'],
|
||||
$suggestionTasks => ['--filter=suggestion task'],
|
||||
$historyTasks => ['--filter=history task|command readiness'],
|
||||
$supplyTasks => ['--filter=supply task'],
|
||||
$formalTasks => ['--filter=formal task'],
|
||||
$quotationTasks => ['--filter=quotation tasks'],
|
||||
$awardTasks => ['--filter=task inbox'],
|
||||
default => [],
|
||||
};
|
||||
$process = new Process([PHP_BINARY, 'vendor/bin/pest', '--compact', ...$tests, ...$filter], dirname(__DIR__), $environment, timeout: $financeIntegration || $awardTasks || $quotationTasks || $organizationPreview || $pilotAccessProposal || $formalTasks || $supplyTasks || $historyTasks || $suggestionTasks || $alternativeTasks || $supplierTasks || $dispositionTasks || $inventoryTasks || $lotTasks || $improvementTasks || $qualityTasks || $coordinationTasks || $lotQualityTasks || $lotPagination || $supplyPagination || $correctionPagination || $reservationSources || $historySources || $policySources || $correctionSources || $supplyLineSources || $noticeConsultation ? 300 : 120);
|
||||
$process->run();
|
||||
echo $process->getOutput();
|
||||
if (! $process->isSuccessful()) {
|
||||
@@ -206,6 +367,39 @@ try {
|
||||
DB::purge('warehouse_proof_read');
|
||||
}
|
||||
$proofName = match (true) {
|
||||
$receiptBlock => 'receipt-block-pg',
|
||||
$replenishmentHealth => 'replenishment-health-pg',
|
||||
$approvedAttention => 'approved-attention-pg',
|
||||
$neededAttention => 'needed-attention-pg',
|
||||
$auditPagination => 'audit-pagination-pg',
|
||||
$requisitionAudit => 'requisition-audit-pg',
|
||||
$mfaManagement => 'mfa-management-pg',
|
||||
$mfaFoundation => 'mfa-foundation-pg',
|
||||
$agreementSources => 'agreement-source-pg',
|
||||
$noticeConsultation => 'notice-consultation-pg',
|
||||
$taskDeadlines => 'task-deadlines-pg',
|
||||
$coordinationExport => 'coordination-export-pg',
|
||||
$coordinationFilters => 'coordination-filters-pg',
|
||||
$supplyLineSources => 'supply-line-source-pg',
|
||||
$correctionSources => 'correction-source-pg',
|
||||
$policySources => 'policy-source-pg',
|
||||
$historySources => 'history-source-pg',
|
||||
$reservationSources => 'reservation-source-pg',
|
||||
$correctionPagination => 'inventory-pagination-pg',
|
||||
$supplyPagination => 'supply-pagination-pg',
|
||||
$lotPagination => 'lot-pagination-pg',
|
||||
$lotQualityTasks => 'lot-quality-task-integration-pg',
|
||||
$coordinationTasks => 'coordination-task-integration-pg',
|
||||
$qualityTasks => 'supplier-quality-task-integration-pg',
|
||||
$improvementTasks => 'supplier-improvement-task-integration-pg',
|
||||
$lotTasks => 'lot-task-integration-pg',
|
||||
$inventoryTasks => 'inventory-task-integration-pg',
|
||||
$dispositionTasks => 'disposition-task-integration-pg',
|
||||
$supplierTasks => 'supplier-task-integration-pg',
|
||||
$alternativeTasks => 'alternative-task-integration-pg',
|
||||
$suggestionTasks => 'suggestion-task-integration-pg',
|
||||
$historyTasks => 'history-task-integration-pg',
|
||||
$supplyTasks => 'supply-task-integration-pg',
|
||||
$formalTasks => 'formal-task-integration-pg',
|
||||
$pilotAccessProposal => 'pilot-access-proposal-pg',
|
||||
$organizationPreview => 'organization-activation-preview-pg',
|
||||
|
||||
Reference in New Issue
Block a user