aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/test.sh
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2025-08-24 16:52:40 +0000
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2025-08-24 16:52:40 +0000
commitdf985c9b639bab3edd687170fd279724b8f05d69 (patch)
treee563cb65f5b3b56ba2893297aaa6e92624ae5a2a /scripts/test.sh
parent5dabc731cfb0f90afd1fc69b2603070149da43be (diff)
downloadsoon-copilot/fix-3fe7bfbf-c7ce-4f76-a4e2-75649693787c.tar.gz
soon-copilot/fix-3fe7bfbf-c7ce-4f76-a4e2-75649693787c.zip
Add comprehensive unit tests and CI test scriptcopilot/fix-3fe7bfbf-c7ce-4f76-a4e2-75649693787c
Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-xscripts/test.sh30
1 files changed, 30 insertions, 0 deletions
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