You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib/init-exe, lib/init-lib: ensure tests runs again
After commit ede5dcf (make the build runner and test runner talk to each other),
the std.Build.addTest function no longer runs tests, but the build.zig
files in init-exe and init-lib where not updated.
Rename main_tests to lib_tests and "Run library tests" to "Run unit tests",
for consistency with init-exe.
Use the new Build.addRunArtifact function, instead of the deprecated
CompileStep.run method.
Add a RunStep to exe_tests and lib_tests.
In the addCliTests function in tests/test.zig:
- set the new RunStep.is_test_command field to true, when running the
`zig build test` command. See ziglang#15104.
- Remove an empty line in the addCliTests function in tests/tests.zig.
Closesziglang#15009
0 commit comments