Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDown migrations can pollute `cargo --test` output #984
Comments
This comment has been minimized.
|
This sounds like a bug in cargo or rustc. That function prints to stdout as you mentioned, which should be getting captured. |
sgrif
closed this
Jul 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
agersant commentedJul 1, 2017
Using Rust 1.18, Diesel 0.13.0 on Windows.
When running cargo test, the testing output gets polluted by diesel output for down migrations (if any occur during the tests). Sample output from https://github.com/agersant/polaris unit tests:
Migrations are executed via calls to
diesel::migrations::revert_latest_migration_in_directoryin some of my tests.I thought cargo suppressed std out during successful tests so I'm unsure if this is a cargo bug or a diesel bug.