admin/scripts/run-order-e2e.ps1
zzh c918faec97 feat(order): 订单链路演练签收 API、E2E 测试与批量任务 SQL 修复
补充链路演练模拟签收接口、E2E 主数据/菜单种子与测试项目,并修复批量任务列表 SqlSugar 查询及表结构注释脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 11:32:45 +08:00

23 lines
607 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 订单全链路 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
}