Comptime test names

You can make a name appear as part of the name of a parent namespace, by making that parent namespace into a generic which takes that name as a parameter, I would only use this if the set of names can’t be enumerated by hand, for example (maybe) in this case (if the file names were defined via a build option or similar):

Here I would suggest to just write it out:

test "alpha_1" {
    try test_helper("alpha", 1);
}
test "alpha_2" {
    try test_helper("alpha", 2);
}
test "beta_1" {
    try test_helper("beta", 1);
}
test "beta_2" {
    try test_helper("beta", 2);
}
// or
test "alpha/beta" {
    try test_helper("alpha", 1);
    try test_helper("alpha", 2);
    try test_helper("beta", 1);
    try test_helper("beta", 2);
}

I don’t think Zig needs to be used in a (often) Lisp like manner, where you write a macro for every single repeating thing, even in Lisp it can be annoying when people go overboard with trying to remove any kind of repetition.

If your actual use-case is more complicated than what you gave as example, then my answer might be different.

Sometimes it also may make sense to write a generator, which writes it out which is used via the buildsystem (So it uses code generation instead of comptime). I think if you need to generate many such tests then code generation could be quite a bit better.