mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-01-09 03:48:03 -05:00
Turn dependency tests from xtask subcommand into #[test]s (#7220)
This commit is contained in:
committed by
GitHub
parent
6f0c2434a7
commit
99437e7343
@@ -37,6 +37,7 @@ This is a table of contents, in the form of the repository's directory structure
|
||||
- [tests](#player-tests)
|
||||
- tests
|
||||
- [compile-tests](#wgpu-compile-tests)
|
||||
- [dependency-tests](#wgpu-dependency-tests)
|
||||
- [gpu-tests](#wgpu-gpu-tests)
|
||||
- [validation-tests](#wgpu-validation-tests)
|
||||
|
||||
@@ -169,6 +170,18 @@ the `wgpu` crate is expected to fail to compile. This mainly
|
||||
revolves around ensuring lifetimes are properly handled when
|
||||
dropping passes, etc.
|
||||
|
||||
## `wgpu` Dependency Tests
|
||||
|
||||
- Located in: `tests/dependency-tests`
|
||||
- Run with `cargo nextest run --test wgpu-dependency-test`
|
||||
- Tests against `cargo tree`.
|
||||
|
||||
These tests ensure that the `wgpu` crate has the correct dependency
|
||||
tree on all platforms. It's super easy to subtly mess up the dependencies
|
||||
which can cause issues or extra dependencies to be pulled in.
|
||||
|
||||
This provides a way to ensure that our `toml` files are correct.
|
||||
|
||||
## `wgpu` GPU Tests
|
||||
|
||||
- Located in: `tests/gpu-tests`
|
||||
|
||||
Reference in New Issue
Block a user