test logs
This commit is contained in:
parent
9ec4d2741c
commit
757f308ed6
|
@ -287,6 +287,10 @@ export class Session {
|
||||||
};
|
};
|
||||||
|
|
||||||
runCode = async (code, isTest = false, expectedOutput) => {
|
runCode = async (code, isTest = false, expectedOutput) => {
|
||||||
|
console.log('runCode')
|
||||||
|
console.log('code', code)
|
||||||
|
console.log('isTest', isTest)
|
||||||
|
console.log('expectedOutput', expectedOutput)
|
||||||
try {
|
try {
|
||||||
const { name, repl, suffix, createEmpty, compile, run, template } =
|
const { name, repl, suffix, createEmpty, compile, run, template } =
|
||||||
this.config;
|
this.config;
|
||||||
|
|
|
@ -125,7 +125,7 @@ async function main() {
|
||||||
window.parent.postMessage({
|
window.parent.postMessage({
|
||||||
event: "total_test_start",
|
event: "total_test_start",
|
||||||
type: "test",
|
type: "test",
|
||||||
});
|
}, "*");
|
||||||
|
|
||||||
window.parent.postMessage({
|
window.parent.postMessage({
|
||||||
$id: 0,
|
$id: 0,
|
||||||
|
@ -140,12 +140,12 @@ async function main() {
|
||||||
status: pass ? "pass" : "fail",
|
status: pass ? "pass" : "fail",
|
||||||
},
|
},
|
||||||
type: "test",
|
type: "test",
|
||||||
});
|
}, "*");
|
||||||
|
|
||||||
window.parent.postMessage({
|
window.parent.postMessage({
|
||||||
event: "total_test_end",
|
event: "total_test_end",
|
||||||
type: "test",
|
type: "test",
|
||||||
});
|
}, "*");
|
||||||
return;
|
return;
|
||||||
case "lspStopped":
|
case "lspStopped":
|
||||||
if (clientDisposable) {
|
if (clientDisposable) {
|
||||||
|
|
Loading…
Reference in New Issue