完成单机TEST统一入口与可靠投递回归收尾
This commit is contained in:
@@ -20,8 +20,12 @@ test('frontend full regression includes domestic and overseas PDA node tests by
|
||||
assert.match(frontendScript, /tests\/\*\.test\.mjs/)
|
||||
})
|
||||
|
||||
test('backend full regression includes file reactor and critical file/container coverage', () => {
|
||||
assert.match(backendScript, /-pl["',\s\S]*order,firstleg,iam,gateway,file/)
|
||||
test('backend full regression uses the entire root reactor and preserves critical file/container coverage', () => {
|
||||
const args = backendScript.match(/\$mavenArgs\s*=\s*@\(([^\r\n]+)\)/)?.[1]
|
||||
assert.equal(args, '"-f", $pom, "test"')
|
||||
assert.match(backendScript, /\$pom = Join-Path \$repoRoot "pom.xml"/)
|
||||
assert.doesNotMatch(args, /-pl|-rf|-N|skipTests|maven.test.skip/)
|
||||
assert.match(backendScript, /complete root POM reactor/)
|
||||
for (const required of [
|
||||
'file/src/test/java/com/baiyue/file/controller/QualificationFileContractTest.java',
|
||||
'file/src/test/java/com/baiyue/file/controller/InternalBusinessFileControllerTest.java',
|
||||
@@ -36,6 +40,7 @@ test('backend full regression includes file reactor and critical file/container
|
||||
|
||||
test('backend full regression rejects Mapper registration drift before Maven', () => {
|
||||
assert.match(backendScript, /scripts\/mapper-scan-contract\.mjs/)
|
||||
assert.match(backendScript, /& node --test[^\r\n]*gateway-route-contract\.test\.mjs[\s\S]*& node \$mapperScanContract/)
|
||||
assert.match(backendScript, /& node \$mapperScanContract[\s\S]*& \$MavenCommand @mavenArgs/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user