This commit is contained in:
2026-01-13 22:16:28 -06:00
parent ac4b47f075
commit 66a9ca27e2
21 changed files with 122 additions and 578 deletions

View File

@@ -313,7 +313,7 @@ function run_tests(package_name, specific_test) {
var ret = t.fn()
if (is_text(ret)) {
throw new Error(ret)
throw Error(ret)
} else if (ret && (is_text(ret.message) || is_proto(ret, Error))) {
throw ret
}
@@ -628,7 +628,7 @@ Total: ${totals.total}, Passed: ${totals.passed}, Failed: ${totals.failed}
}
}
ensure_dir(report_dir)
fd.slurpwrite(`${report_dir}/test.txt`, stone(new blob(txt_report)))
fd.slurpwrite(`${report_dir}/test.txt`, stone(blob(txt_report)))
log.console(`Report written to ${report_dir}/test.txt`)
// Generate JSON per package
@@ -645,7 +645,7 @@ Total: ${totals.total}, Passed: ${totals.passed}, Failed: ${totals.failed}
}
var json_path = `${report_dir}/${pkg_res.package.replace(/\//g, '_')}.json`
fd.slurpwrite(json_path, stone(new blob(json.encode(pkg_tests))))
fd.slurpwrite(json_path, stone(blob(json.encode(pkg_tests))))
}
}