What is the plan for Zig's testing toolkit?

I’m used to Go’s testing library and it has a bunch of features which are very useful in practical applications:

  • A testing.T-object which can be passed around to add more functionality (e.g. the require and assert packages).
  • Define tests on run-time (so that you easily create various combinations and still have them listed/filtered separately).
  • Nested tests (so that you can have common setup/teardown).
  • Running tests in random order (to avoid unintended ordering dependencies).

Are there any plans to bring these features into Zig’s testing framework? Or in any way make it possible to implement these features as a library in Zig which can be integrated into zig test?

1 Like