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

Fix testing infrastructure #970

Merged
merged 1 commit into from
Jun 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lazy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -69,4 +69,3 @@ validate-hlsl: $(SNAPSHOTS_OUT)/*.hlsl
echo "Validating" $${file#"$(SNAPSHOTS_OUT)/"};\
dxc $${file} -T cs_6_0;\
done

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down