1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

When a JS SQLTester script throws, report the exception details back to the UI regardless of whether it's fatal.

FossilOrigin-Name: 273d3b05f630d399d42914e95c416b107b4746bbef129cfba9d00fd921666261
This commit is contained in:
stephan
2023-08-30 14:20:02 +00:00
parent 24c32c2e39
commit 8dd07389ac
5 changed files with 28 additions and 22 deletions

View File

@@ -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: