fix runner
This commit is contained in:
parent
f32b01c57d
commit
da695eb56c
1 changed files with 4 additions and 2 deletions
|
|
@ -146,12 +146,14 @@ async function main(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const result = await runConformanceTest(command, scenario);
|
const result = await runConformanceTest(command, scenario);
|
||||||
|
|
||||||
|
const denominator = result.checks.filter(c => c.status === 'SUCCESS' || c.status == 'FAILURE').length;
|
||||||
const passed = result.checks.filter(c => c.status === 'SUCCESS').length;
|
const passed = result.checks.filter(c => c.status === 'SUCCESS').length;
|
||||||
const failed = result.checks.filter(c => c.status === 'FAILURE').length;
|
const failed = result.checks.filter(c => c.status === 'FAILURE').length;
|
||||||
|
|
||||||
|
console.log(`Checks:\n${JSON.stringify(result.checks, null, 2)}`);
|
||||||
|
|
||||||
console.log(`\nTest Results:`);
|
console.log(`\nTest Results:`);
|
||||||
console.log(`Passed: ${passed}/${result.checks.length}`);
|
console.log(`Passed: ${passed}/${denominator}, ${failed} failed`);
|
||||||
console.log(`Failed: ${failed}/${result.checks.length}`);
|
|
||||||
|
|
||||||
if (failed > 0) {
|
if (failed > 0) {
|
||||||
console.log('\nFailed Checks:');
|
console.log('\nFailed Checks:');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue