mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix testing infrastructure
This commit is contained in:
committed by
Dzmitry Malyshau
parent
54d7d7d2a3
commit
343f786492
2
.github/workflows/lazy.yml
vendored
2
.github/workflows/lazy.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Generate report
|
||||
uses: actions-rs/tarpaulin@v0.1
|
||||
with:
|
||||
args: '--tests --all-features'
|
||||
args: '--tests --all-features --workspace'
|
||||
- name: Upload to codecov.io
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
|
||||
4
.github/workflows/pipeline.yml
vendored
4
.github/workflows/pipeline.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
name: Test all features
|
||||
with:
|
||||
command: test
|
||||
args: --all-features
|
||||
args: --all-features --workspace
|
||||
- name: Check snapshots
|
||||
run: git diff --exit-code -- tests/out
|
||||
clippy:
|
||||
@@ -41,4 +41,4 @@ jobs:
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all-features -- -D warnings
|
||||
args: --all-features --workspace -- -D warnings
|
||||
|
||||
5
Makefile
5
Makefile
@@ -5,8 +5,8 @@ SNAPSHOTS_OUT=tests/out
|
||||
|
||||
all:
|
||||
cargo fmt
|
||||
cargo test --all-features
|
||||
cargo clippy --all-features
|
||||
cargo test --all-features --workspace
|
||||
cargo clippy --all-features --workspace -- -D warnings
|
||||
|
||||
clean:
|
||||
rm *.metal *.air *.metallib *.vert *.frag *.comp *.spv
|
||||
@@ -69,4 +69,3 @@ validate-hlsl: $(SNAPSHOTS_OUT)/*.hlsl
|
||||
echo "Validating" $${file#"$(SNAPSHOTS_OUT)/"};\
|
||||
dxc $${file} -T cs_5_0;\
|
||||
done
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ cargo run --features wgsl-in,glsl-out -- my_shader.wgsl my_shader.vert --profile
|
||||
|
||||
## Development workflow
|
||||
|
||||
The main instrument aiding the development is the good old `cargo test --all-features`,
|
||||
The main instrument aiding the development is the good old `cargo test --all-features --workspace`,
|
||||
which will run the unit tests, and also update all the snapshots. You'll see these
|
||||
changes in git before committing the code.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user