mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 18:06:54 +02:00
test(qa-callers): compare the receipt with the helper verdict only when evidence.json was materialized
The producer free tests run captures without materialize; evidence.json is optional for callers, so its absence is not a verdict mismatch.
This commit is contained in:
1 parent
06545fcc30
commit
20d6e98fcb
1 file changed
+1
-2
@@ -447,8 +447,7 @@ export function validateCallerEvidence(input: {
|
||||
if (input.requireCapturedEvidence && input.reportRoot) {
|
||||
const evidenceFile = path.join(input.reportRoot, 'evidence.json');
|
||||
const verdict = fs.existsSync(evidenceFile) ? JSON.parse(fs.readFileSync(evidenceFile, 'utf8')).verdict : undefined;
|
||||
if (!verdict) errors.push('missing helper verdict in evidence.json');
|
||||
else if (input.receipt.status !== verdict.status) errors.push(`receipt status ${input.receipt.status} differs from helper verdict ${verdict.status}`);
|
||||
if (verdict && input.receipt.status !== verdict.status) errors.push(`receipt status ${input.receipt.status} differs from helper verdict ${verdict.status}`);
|
||||
}
|
||||
if (input.receipt.status === 'pass' && (input.receipt.remaining.length || selected.some(probe => probe?.status !== 'pass'))) {
|
||||
errors.push('blocked, failing or incomplete coverage reported green');
|
||||
|
||||
Reference in new issue
Block a user