ci: Added more aliases and commands to the Justfile for snapshot tests
This commit is contained in:
@@ -53,11 +53,13 @@ doctest:
|
|||||||
proptest:
|
proptest:
|
||||||
@cargo test proptest
|
@cargo test proptest
|
||||||
|
|
||||||
|
alias test-snapshots := snapshot-tests
|
||||||
# Run all snapshot tests
|
# Run all snapshot tests
|
||||||
[group: 'test']
|
[group: 'test']
|
||||||
snapshot-tests:
|
snapshot-tests:
|
||||||
@cargo test snapshot
|
@cargo test snapshot
|
||||||
|
|
||||||
|
alias review := snapshot-review
|
||||||
# Review snapshot test changes
|
# Review snapshot test changes
|
||||||
[group: 'test']
|
[group: 'test']
|
||||||
@snapshot-review:
|
@snapshot-review:
|
||||||
@@ -65,6 +67,14 @@ snapshot-tests:
|
|||||||
cargo insta -h > /dev/null 2>&1 || cargo install cargo-insta
|
cargo insta -h > /dev/null 2>&1 || cargo install cargo-insta
|
||||||
cargo insta review
|
cargo insta review
|
||||||
|
|
||||||
|
alias clean-orphaned-snapshots := snapshot-delete-unreferenced
|
||||||
|
# Delete any unreferenced snapshots
|
||||||
|
[group: 'test']
|
||||||
|
@snapshot-delete-unreferenced:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
cargo insta -h > /dev/null 2>&1 || cargo install cargo-insta
|
||||||
|
cargo insta test --unreferenced=delete
|
||||||
|
|
||||||
# Build and run the binary for the current system
|
# Build and run the binary for the current system
|
||||||
run:
|
run:
|
||||||
@cargo run
|
@cargo run
|
||||||
|
|||||||
Reference in New Issue
Block a user