Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ zig build run
zig build -Doptimize=ReleaseFast
```

## Testing

```bash
# Frontend functional/unit coverage
npm --prefix frontend run test:run

# Backend Zig coverage
zig build test

# Run both test suites
./tests/run-functional-tests.sh
```

### Package as macOS App

```bash
Expand Down
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ pub fn build(b: *std.Build) void {
// Tests
const unit_tests = b.addTest(.{
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.root_source_file = b.path("src/test_main.zig"),
.target = target,
.optimize = optimize,
}),
});
unit_tests.linkSystemLibrary("util");
unit_tests.linkSystemLibrary("sqlite3");
unit_tests.linkLibC();

Expand Down
Loading
Loading