Files
java-interview-lab/notification-service/scripts/run-all.sh
T

11 lines
451 B
Bash
Executable File

#!/usr/bin/env bash
# Regenerates every file in output/. Needs JDK 25 and Maven; the first Maven run must be online.
# Each file is written by a JUnit test that asserts the same facts it prints, so a claim in the article
# fails the build the moment it stops being true. Kafka runs inside the test JVM: no Docker, no ZooKeeper.
set -euo pipefail
cd "$(dirname "$0")/.."
rm -f output/*.txt
mkdir -p output
mvn -B -q -T1 test
echo "done:"; ls -1 output