-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·30 lines (22 loc) · 766 Bytes
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·30 lines (22 loc) · 766 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
#!/bin/bash
echo "Running tests for CSQLY..."
# Navigate to solution directory
cd "$(dirname "$0")"
# Exit on any error
set -e
# Clean output directories
echo "Cleaning output directories..."
rm -rf CSQLY/bin CSQLY/obj CSQLY.Tests/bin CSQLY.Tests/obj CSQLY.CLI/bin CSQLY.CLI/obj
# Check if solution file exists
if [ ! -f "CSQLY.sln" ]; then
echo "Error: CSQLY.sln not found in current directory"
exit 1
fi
# Restore and build the solution
echo "Restoring and building solution..."
dotnet restore --verbosity minimal
dotnet build --configuration Release --verbosity minimal
# Run tests with verbose output
echo "Running tests..."
dotnet test CSQLY.Tests/CSQLY.Tests.csproj --configuration Release --no-build --verbosity normal
echo "Tests completed."