补充链路演练模拟签收接口、E2E 主数据/菜单种子与测试项目,并修复批量任务列表 SqlSugar 查询及表结构注释脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
607 B
PowerShell
23 lines
607 B
PowerShell
# 订单全链路 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
|
||
}
|