╭ changed ╮ │build.zig│ ╰─────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │48 test_step.dependOn(&install_main_exe.step); │ │49 test_step.dependOn(&run_unit_tests.step); │ │50 } │ │51 + │ │52 + { │ │53 + const unit_tests = b.addTest(.{ │ │54 + .root_module = b.createModule(.{ │ │55 + .root_source_file = b.path("src/testnet.zig"), │ │56 + .target = target, │ │57 + .optimize = optimize, │ │58 + }), │ │59 + }); │ │60 + unit_tests.root_module.addImport("xit", b.dependency("xit", .{}).module("xit"));│ │61 + │ │62 + const run_unit_tests = b.addRunArtifact(unit_tests); │ │63 + run_unit_tests.has_side_effects = true; │ │64 + const test_step = b.step("testnet", "Run network unit tests"); │ │65 + test_step.dependOn(&install_main_exe.step); │ │66 + test_step.dependOn(&run_unit_tests.step); │ │67 + } │ │68 } │ │69 │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────╮ │build.zig.zon│ ╰─────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 3 .version = "0.0.0", │ │ 4 .dependencies = .{ │ │ 5 .xit = .{ │ │ 6 - .url = "git+https://github.com/xit-vcs/xit#5eb8d13aaa456176dbff52ac3c1b955736255ff7",│ │ 7 - .hash = "xit-0.0.0-Ub3nDCxRTwEUWgYI9R-pGt69R6EPYBZdTA223Hc_v5Fc", │ │ 6 + .url = "git+https://github.com/xit-vcs/xit#06f3a23c2cd4868520355495bb0efc0efe72a6ee",│ │ 7 + .hash = "xit-0.0.0-Ub3nDH9rTwGg1CIWBL8GasZSfhwBe2XR5aI82o66zEkg", │ │ 8 }, │ │ 9 }, │ │10 .paths = .{ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───╮ │src/test.zig│ ╰────────────╯ ╭─────────────────────────────────────╮ │1 comptime { │ │2 - _ = @import("test/net.zig"); │ │2 + _ = @import("test/event.zig");│ │3 } │ │4 │ ╰─────────────────────────────────────╯ ╭ added ───────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭ added ────────╮ │src/testnet.zig│ ╰───────────────╯