schemars/update-tests.sh
Graham Esau a479e6cc0e
Improvements to test coverage (#340)
This increases msrv to 1.70
2024-09-16 10:06:22 +01:00

14 lines
306 B
Bash

#!/bin/bash
set -euxo pipefail
cd schemars
rm -f tests/actual/*.json
TRYBUILD=overwrite SNAPSHOTS=overwrite cargo test --all-features --no-fail-fast --tests || :
if ls tests/actual/*.json 1> /dev/null 2>&1; then
mv -f tests/actual/*.json tests/expected/
else
echo "Test schemas are up-to-date."
fi