s0-meter/auto_test.sh

10 lines
329 B
Bash
Raw Normal View History

2021-02-11 15:05:10 +01:00
#!/bin/bash
# Start test if one of the files was modified
cargo install cargo-watch
2021-02-11 22:09:29 +01:00
# Run the tests on change
# Set RUST_BACKTRACE to 1 to see a short backtrace in case of an error
# Set RUST_BACKTRACE to "full" to see a full backtrace in case of an error
2021-03-28 23:00:54 +02:00
RUST_BACKTRACE=0 cargo watch -x "test -- --nocapture --test-threads 1"