(name: String)
| 3 | const run_tracker = script.createStorageJson("lib_run_tests"); |
| 4 | |
| 5 | export async function sendScriptCompletion(name: String) { |
| 6 | if (await run_tracker.setIf("completed_" + name, true, "IfNotExists")) { |
| 7 | sendTestingEvent("ScriptComplete"); |
| 8 | console.log(`${name} completed`) |
| 9 | } else { |
| 10 | throw new Error(`Tried to complete test twice: ${name}`) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | export function sendTestingEvent(event: TestingEvent) { |
| 15 | console.log(`INTEGRATION_TEST:${JSON.stringify(event)}`) |
no test coverage detected