From df985c9b639bab3edd687170fd279724b8f05d69 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 24 Aug 2025 16:52:40 +0000 Subject: Add comprehensive unit tests and CI test script Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com> --- scripts/test.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 scripts/test.sh (limited to 'scripts') diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..b671a94 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Simple test script for soon CLI tool + +set -e + +echo "🧪 Running Soon CLI Tests..." + +# Test 1: Build succeeds +echo "1. Testing build..." +cargo build --quiet + +# Test 2: Unit tests pass +echo "2. Running unit tests..." +cargo test --quiet + +# Test 3: Basic CLI functionality +echo "3. Testing CLI help..." +./target/debug/soon --help > /dev/null + +echo "4. Testing version command..." +./target/debug/soon version > /dev/null + +echo "5. Testing which command..." +./target/debug/soon which > /dev/null + +# Test 4: Release build +echo "6. Testing release build..." +cargo build --release --quiet + +echo "✅ All tests passed!" \ No newline at end of file -- cgit v1.2.3-70-g09d2