Merge pull request #151 from lightpanda-io/fix-run-test

test: run classic test func
This commit is contained in:
Pierre Tachoire
2024-01-11 16:27:26 +01:00
committed by GitHub

View File

@@ -1,4 +1,5 @@
const std = @import("std");
const builtin = @import("builtin");
const jsruntime = @import("jsruntime");
const generate = @import("generate.zig");
@@ -80,8 +81,14 @@ fn testsAllExecFn(
}
pub fn main() !void {
std.debug.print("\n \n", .{});
std.debug.print("\n", .{});
for (builtin.test_functions) |test_fn| {
try test_fn.func();
std.debug.print("{s}\tOK\n", .{test_fn.name});
}
}
test "jsruntime" {
// generate tests
try generate.tests();