-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-backend.sh
More file actions
executable file
Β·45 lines (35 loc) Β· 978 Bytes
/
test-backend.sh
File metadata and controls
executable file
Β·45 lines (35 loc) Β· 978 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
41
42
43
44
45
#!/bin/bash
# Vikings Rise Simulator - Backend Test Script
echo "π§ͺ Testing backend setup..."
cd backend
# Test compilation
echo "π¦ Testing Maven compilation..."
mvn compile -q
if [ $? -ne 0 ]; then
echo "β Backend compilation failed"
exit 1
fi
echo "β
Backend compilation successful"
# Test if main class exists
if [ -f "src/main/java/com/vikingsrise/simulator/SimulatorBackendApplication.java" ]; then
echo "β
Main application class found"
else
echo "β Main application class not found"
exit 1
fi
# Test if test classes exist
if [ -d "src/main/java/test" ]; then
echo "β
Original simulation classes found"
else
echo "β Original simulation classes not found"
exit 1
fi
# Test if resources exist
if [ -f "src/main/resources/test/SkillDatabase.json" ]; then
echo "β
Skill database found"
else
echo "β Skill database not found"
exit 1
fi
echo "π Backend setup validation completed successfully!"
cd ..