Hello @rotiv, welcome to ziggit.
The easy way is to run zig build test from zed tasks (the task definition is included in the zig extension).
For this to work you need to have a build.zig that defines the test step. The example code in Build System Tricks runs the tests in the root_source_file.