Skip to content

add documentation for zig test #1518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewrk opened this issue Sep 13, 2018 · 0 comments
Closed

add documentation for zig test #1518

andrewrk opened this issue Sep 13, 2018 · 0 comments
Labels
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Sep 13, 2018

extracted from #367

  • basic usage
  • example of how lazy analysis means you have to reference a declaration for it to get analyzed. so tests are pretty useful. you'll also need to sometimes do comptime { _ = @import("foo.zig"); } to find tests from other files
  • --test-filter
  • --test-name-prefix
  • testing in releasefast and releasesafe mode. use assertOrPanic. std.debug.assert should not be special-cased in test mode #1304
  • it puts the test binary in zig-cache/ so you can use a debugger or other tool on it.
@andrewrk andrewrk added the docs label Sep 13, 2018
@andrewrk andrewrk added this to the 0.4.0 milestone Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant