From bcc1755291eb29b2b26020be2497479cbc335f31 Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Fri, 28 Jun 2024 19:26:43 -0400 Subject: [PATCH] update add-exercise and generate_tests scripts --- bin/add-exercise | 2 +- bin/generate_tests | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/add-exercise b/bin/add-exercise index e472dee..0db70ee 100755 --- a/bin/add-exercise +++ b/bin/add-exercise @@ -79,7 +79,7 @@ jq --arg slug "${slug}" \ ' "${conf}" > "${conf}.tmp" \ && mv "${conf}.tmp" "${conf}" -cp exercises/practice/hello-world/bats-extra.bash exercises/practice/"${slug}" +cp -pt exercises/practice/"${slug}" lib/bats-*.bash ./bin/generate_tests "${slug}" diff --git a/bin/generate_tests b/bin/generate_tests index 9c24367..7631299 100755 --- a/bin/generate_tests +++ b/bin/generate_tests @@ -114,6 +114,7 @@ writeTestFile() { #!/usr/bin/env bats # generated on $(date --utc "+%FT%TZ") load bats-extra +load bats-jq END_PREAMBLE jq -r --arg slug "$slug" \