-
Notifications
You must be signed in to change notification settings - Fork 40
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
Some help with getting started #162
Comments
You will need to put your tests into an integration test (under So I've been moving my tests over to my other crate, |
What is |
I have three tiers of CLI testing
I suspect |
I have noticed that the provided github links on https://docs.rs/snapbox/latest/snapbox/ links to |
Hi, I have made a little cli tool in Rust that I would like to add some tests to. I want to test the whole binary produced and check that it prints the right thing to stdout. I think this library is perfect for that use-case. However, I am a bit lost where to start. I have only ever done small unit tests in rust, not full integration tests like this one. I find the documentation of
assert_cmd
to be a bit lacking: In which file do I put my tests? An example skeleton of a cli integration test would be amazing! Thanks for the great work!The text was updated successfully, but these errors were encountered: