-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunTests.sh
More file actions
30 lines (24 loc) · 908 Bytes
/
RunTests.sh
File metadata and controls
30 lines (24 loc) · 908 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
# FFT Color Customizer - Test Runner
# This script ensures tests run with the exact correct command every time
# Exits immediately if any step fails
set -e # Exit on any error
echo -e "\033[33m[1/3] Restoring packages...\033[0m"
dotnet restore FFTColorCustomizer.Tests.csproj --nologo
if [ $? -ne 0 ]; then
echo -e "\033[31mERROR: Failed to restore packages\033[0m"
exit 1
fi
echo -e "\033[33m[2/3] Building test project...\033[0m"
dotnet build FFTColorCustomizer.Tests.csproj --nologo -p:WarningLevel=0
if [ $? -ne 0 ]; then
echo -e "\033[31mERROR: Failed to build test project\033[0m"
exit 1
fi
echo -e "\033[32m[3/3] Running tests...\033[0m"
dotnet test FFTColorCustomizer.Tests.csproj --no-build --nologo -p:WarningLevel=0 --logger "console;verbosity=minimal"
TEST_RESULT=$?
if [ $TEST_RESULT -ne 0 ]; then
exit 1
fi
echo -e "\n\033[36m✓ All tests passed!\033[0m"