test: add test arguments and expose json benchmark result

This commit is contained in:
Pierre Tachoire
2024-04-08 14:40:52 +02:00
parent d58045c330
commit 32349e472c
2 changed files with 108 additions and 9 deletions

View File

@@ -86,6 +86,9 @@ pub fn build(b: *std.build.Builder) !void {
});
try common(tests, options);
const run_tests = b.addRunArtifact(tests);
if (b.args) |args| {
run_tests.addArgs(args);
}
// step
const test_step = b.step("test", "Run unit tests");