bevyengine / bevyengine/bevy

"cargo test" hangs when running Bevy asset tests

Open
#10,278 1 comment 0 reactions 0 assignees View on GitHub
A-Assets C-Bug C-Testing
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

Bevy main pre-0.12 (134750d18e55ed5ed75f109a89c14bd158b54828)

## Relevant system information

MacOS Monterey 12.6.7.
Rust version: rustc 1.73.0 (cc66ad468 2023-10-03)

## What you did

From the Bevy project root directory:

```sh
RUST_TEST_THREADS=1 cargo test -p bevy_asset
```

(The reason for RUST_TEST_THREADS is so that I can see which test is hanging.)

## What went wrong

Tests do not complete, program hangs:

```sh
running 19 tests
test io::memory::test::memory_dir ... ok
test path::tests::parse_asset_path ... ok
test path::tests::test_resolve_absolute ... ok
test path::tests::test_resolve_asset_source ... ok
test path::tests::test_resolve_canonicalize ... ok
test path::tests::test_resolve_canonicalize_base ... ok
test path::tests::test_resolve_canonicalize_with_source ... ok
test path::tests::test_resolve_explicit_relative ... ok
test path::tests::test_resolve_full ... ok
test path::tests::test_resolve_implicit_relative ... ok
test path::tests::test_resolve_insufficient_elements ... ok
test path::tests::test_resolve_label ... ok
test path::tests::test_resolve_trailing_slash ... ok
test reflect::tests::test_reflect_asset_operations ... ok
test tests::failure_load_states ...
```

## Additional information

This has been happening for a while. It's possible that I am simply running the test incorrectly, as it has never actually worked for me.

If I run only the 'path' tests, `cargo test` terminates as I would expect it to.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.