From 79f2c17db35755e9c3c1c168bebe662b7fa87ba2 Mon Sep 17 00:00:00 2001 From: Ashton Date: Fri, 6 Oct 2023 17:01:34 -0400 Subject: [PATCH] Add clarinet check step to romeo test script (#247) * Add clarinet check step to romeo test script * exit on failure and add comments --- romeo/asset-contract/scripts/test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/romeo/asset-contract/scripts/test.sh b/romeo/asset-contract/scripts/test.sh index 1c365a6d..c4b1bbde 100755 --- a/romeo/asset-contract/scripts/test.sh +++ b/romeo/asset-contract/scripts/test.sh @@ -1,6 +1,18 @@ #!/bin/sh + +# Setup directories. mkdir -p .test mkdir -p .coverage rm -r .test/* + +# Exit on next failure. +set -e + +# Verify syntax. +clarinet check + +# Generate tests. clarinet run --allow-write --allow-read ext/generate-tests.ts + +# Test with coverage. clarinet test --coverage .coverage/lcov.info .test