Skip to content

Commit

Permalink
build: add test names
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jun 19, 2024
1 parent 621f752 commit c9afab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub fn build(b: *std.Build) void {
run_step.dependOn(&run_cmd.step);

const unit_tests = b.addTest(.{
.name = "unit-test",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
Expand All @@ -46,6 +47,7 @@ pub fn build(b: *std.Build) void {
test_options.addOptionPath("exe_path", exe.getEmittedBin());

const integration_tests = b.addTest(.{
.name = "integration-test",
.root_source_file = .{ .path = "./tests/cli.zig" },
});

Expand Down

0 comments on commit c9afab1

Please sign in to comment.