Wrote a blog post with some things that have helped me with debugging code in test
s.
19 Likes
you can also put the test executable in zig-out
with installArtifact
if you want to debug it quickly.
1 Like
I love the style of your website! Very little wasted space on screen, without feeling cluttered. Focussed.
3 Likes
Nice post. I hadn’t even thought of using errdefer std.debug.print
in a test. I could have saved a lot of scrolling through good output to find bad.
1 Like
Thank you! I really like text-dense interfaces, and use a lot of command line tools. The style is inspired by Linux man
pages and also old W3C RFC documents.
I need to dive back into emacs and see what there is to learn from how it does UI because that is something that I miss.
1 Like
Makes sense, this process taught me a lot about the zig build system but there is still much to learn!