-
Notifications
You must be signed in to change notification settings - Fork 129
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
cargo test fails on archive from crates.io #213
Comments
I think this was done on purpose on a9497fb to not bloat the archive |
(Not that this is necessarily wontfix I guess, just pointing that out) This was done in #116 to help with https://bugzilla.mozilla.org/show_bug.cgi?id=1336655. |
@ignatenkobrain Why is it useful to run tests on the crates.io archive? PRs are merged into |
@SimonSapin, it is useful to verify that crate package within distribution works correctly. @emilio, I don't really against excluding test files. But if you do that, please make sure that such tests are not run instead of having compilation errors. |
@ignatenkobrain There are a few unit tests that don’t rely on these JSON files, so they could run from the crates.io archive. I’m not convinced that doing that (instead of just verifying that the crate builds) is worthwhile, but I’d take a PR that adds a That way you could run |
Yeah I don't see a much better way to do it than what @SimonSapin suggested above... We could check the existence of the json file, but that'd risk tests actually passing on automation if those are deleted, which is something I'd like to avoid. |
The text was updated successfully, but these errors were encountered: