Skip to content
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 with archive from crates.io #51

Closed
ignatenkobrain opened this issue Mar 15, 2019 · 2 comments · Fixed by #176
Closed

cargo test fails with archive from crates.io #51

ignatenkobrain opened this issue Mar 15, 2019 · 2 comments · Fixed by #176

Comments

@ignatenkobrain
Copy link
Contributor

---- src/lib.rs -  (line 38) stdout ----
thread 'src/lib.rs -  (line 38)' panicked at 'test executable failed:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

', src/librustdoc/test.rs:356:17
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

---- src/lib.rs -  (line 18) stdout ----
thread 'src/lib.rs -  (line 18)' panicked at 'test executable failed:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

', src/librustdoc/test.rs:356:17

I'm packaging gif and we always run cargo test to ensure that library works fine in distribution. But unfortunately gif one fails (I assume because you exclude test data). Could you either include it or make it to not fail in case data is missing? Thanks.

@HeroicKatora
Copy link
Member

HeroicKatora commented Sep 24, 2021

This reminded me, I've just opened a PR on image that could ensure that tests can be ran with the archives from crates. You might want to have a look, and I'll see when I get around to porting it to gif for additional data points of usage. (Or just relay the message to other interested parties at Gnome).

kornelski added a commit to kornelski/image-gif that referenced this issue Jan 12, 2024
kornelski added a commit to kornelski/image-gif that referenced this issue Jan 12, 2024
kornelski added a commit that referenced this issue Jan 12, 2024
@kornelski
Copy link
Contributor

I've moved some tests out, but that wasn't sufficient. There are still tests inline in .rs files that are published, so this is WONTFIX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants