优化
This commit is contained in:
@@ -6,6 +6,7 @@ const acceptance = readFileSync(new URL('../admin-test-env-acceptance.mjs', impo
|
||||
const orders = readFileSync(new URL('./orders.mjs', import.meta.url), 'utf8')
|
||||
const measurement = readFileSync(new URL('./inbound-measurement.mjs', import.meta.url), 'utf8')
|
||||
const runner = readFileSync(new URL('../it-test-wait-split-bulk.mjs', import.meta.url), 'utf8')
|
||||
const warehouseLocationResources = readFileSync(new URL('../../warehouse/src/main/java/com/baiyue/warehouse/service/LocationResourceService.java', import.meta.url), 'utf8')
|
||||
|
||||
test('单票随机箱数严格分配到各 SKU 并限制为1到1000', () => {
|
||||
assert.match(acceptance, /--wait-split-package-count <n>/)
|
||||
@@ -35,6 +36,13 @@ test('称重只随机复用义乌仓原有两个托盘且禁止按订单新增',
|
||||
assert.doesNotMatch(measurement, /创建称重托盘主数据/)
|
||||
})
|
||||
|
||||
test('称重脚本不新增库位且容量不足由仓库服务复用 A0 公共位', () => {
|
||||
assert.doesNotMatch(measurement, /context\.request\('POST', '\/api\/platform\/v1\/locations/)
|
||||
assert.doesNotMatch(measurement, /创建测量占用库位/)
|
||||
assert.match(measurement, /普通位不足会复用唯一的 A0 共享溢出位/)
|
||||
assert.match(warehouseLocationResources, /selected\.size\(\) < quantity[\s\S]*lockOrCreateSharedOverflow/)
|
||||
})
|
||||
|
||||
test('八千票执行器逐票记录且失败后继续', () => {
|
||||
assert.match(runner, /positiveInteger\(values\.get\('count'\), 8000/)
|
||||
assert.match(runner, /positiveInteger\(values\.get\('box-max'\), 300/)
|
||||
|
||||
Reference in New Issue
Block a user