You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/test-integration.sh
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -152,21 +152,21 @@ if [ "$TEST_ENV" = "prod" ]; then
152
152
echo" ⚠️ API docs endpoint not accessible"
153
153
fi
154
154
155
-
# Run basic API tests (but don't fail if some tests don't work in production)
156
-
echo" Running core API tests..."
157
-
docker-compose -f $COMPOSE_FILEexec -T app python -m pytest tests/test_api.py -v ||echo"⚠️ Some production tests failed (expected in minimal production setup)"
155
+
# Run basic API tests with coverage (but don't fail if some tests don't work in production)
156
+
echo" Running core API tests with coverage..."
157
+
docker-compose -f $COMPOSE_FILEexec -T app python -m pytest tests/test_api.py -v --cov=. --cov-report=xml --cov-report=term-missing ||echo"⚠️ Some production tests failed (expected in minimal production setup)"
158
158
else
159
159
# Test/CI environment - check if test server is available
160
160
if docker-compose -f $COMPOSE_FILE ps | grep -q "test-server\|ci-test-server";then
161
-
echo" Running full integration tests..."
162
-
docker-compose -f $COMPOSE_FILEexec -T $(echo $COMPOSE_FILE| grep ci >/dev/null &&echo"ci-app"||echo"test-app") pytest tests/test_integration_execute.py -v -s ||echo"⚠️ Some integration tests failed"
161
+
echo" Running full integration tests with coverage..."
0 commit comments