From 8dd07389ac9ae965fa984451af807b719a867549 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 30 Aug 2023 14:20:02 +0000 Subject: When a JS SQLTester script throws, report the exception details back to the UI regardless of whether it's fatal. FossilOrigin-Name: 273d3b05f630d399d42914e95c416b107b4746bbef129cfba9d00fd921666261 --- ext/wasm/SQLTester/SQLTester.run.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/wasm/SQLTester/SQLTester.run.mjs') diff --git a/ext/wasm/SQLTester/SQLTester.run.mjs b/ext/wasm/SQLTester/SQLTester.run.mjs index 4a0890459..0f91230fd 100644 --- a/ext/wasm/SQLTester/SQLTester.run.mjs +++ b/ext/wasm/SQLTester/SQLTester.run.mjs @@ -63,6 +63,7 @@ SELECT 1, null; SELECT 1, 2; intentional error; --run +/* ---intentional-failure */ --testcase json-1 SELECT json_array(1,2,3) --json [1,2,3] @@ -96,6 +97,7 @@ const sqt = new ns.SQLTester() .setLogger(console.log.bind(console)) .verbosity(1) .addTestScript(ts); +sqt.outer().outputPrefix(''); const runTests = function(){ try{ @@ -127,7 +129,7 @@ if( globalThis.WorkerGlobalScope ){ switch(data.type){ case 'run-tests':{ try{ runTests(); } - finally{ wPost('tests-end'); } + finally{ wPost('tests-end', sqt.metrics); } break; } default: -- cgit v1.2.3