-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·40 lines (32 loc) · 1014 Bytes
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·40 lines (32 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Test runner script for Cherry project
# This script runs tests for the core Rust libraries that don't depend on GTK
set -e
echo "🧪 Running tests for Cherry project..."
echo "======================================"
# Set environment variables for tests
export JWT_SECRET="test_secret_key_for_testing"
# Source Rust environment
source $HOME/.cargo/env
echo ""
echo "📦 Testing streamstore crate..."
echo "-------------------------------"
cd crates/streamstore
cargo test --lib
echo "✅ streamstore tests passed!"
echo ""
echo "📦 Testing cherrycore crate..."
echo "-------------------------------"
cd ../cherrycore
cargo test --lib
echo "✅ cherrycore tests passed!"
echo ""
echo "🎉 All tests passed successfully!"
echo ""
echo "📊 Test Summary:"
echo " - streamstore: 42 tests"
echo " - cherrycore: 28 tests"
echo " - Total: 70 tests"
echo ""
echo "Note: The Tauri application (cherry crate) requires GTK dependencies"
echo " and is not included in this test run."