# 订单全链路 E2E 测试 # 前置:MySQL 已执行 db.sql,且可连接 # 用法: # $env:OMS_E2E_ENABLED = "1" # $env:OMS_E2E_CONNECTION = "Server=127.0.0.1;Port=3306;Database=oms;Uid=root;Pwd=你的密码;CharSet=utf8mb4;" # .\scripts\run-order-e2e.ps1 $ErrorActionPreference = "Stop" $root = Split-Path -Parent $PSScriptRoot if (-not $env:OMS_E2E_ENABLED) { $env:OMS_E2E_ENABLED = "1" } Write-Host "Running Oms.E2E.Tests (Category=E2E) ..." Push-Location $root try { dotnet test "src\Oms.E2E.Tests\Oms.E2E.Tests.csproj" --filter "Category=E2E" -v n } finally { Pop-Location }