-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add test harness #11
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
Conversation
a0a317d to
5bac466
Compare
| (targets test_ns) ; the Dune target name | ||
| (deps test_ns.rs) ; path relative to this dune file | ||
| (action | ||
| (run rustc --test %{deps} -o %{targets} --allow warnings))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty cool that you can do this
| .expect("failed to canonicalize path to ns binary") | ||
| } | ||
|
|
||
| fn assert_stdout_eq(stdout: &[u8], expected: &[&str]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this still be accomplished with built-in asserts? Regardless pretty cool, and if so then its a very nice touch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just for utility, but yes. If you use the regular assert it will print out extra stuff that we don't need.
andrewvious
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 LGTM, going to test out after merge
Adds
printcmdflag for printing the command instead of running it.Uses
duneas the build tool to invokerustcto build a test suite.Adds additional checks to the default derivation, and adds default derivation to flake checks.
Bumps version patch.