anonpenguin 64ed9e82a7 Add integration tests for blog workflow and supporting infrastructure
- Implemented comprehensive integration tests for user management, category management, content publishing, comment system, performance, scalability, and network resilience.
- Created DockerNodeManager to manage Docker containers for testing.
- Developed ApiClient for API interactions and health checks.
- Introduced SyncWaiter for synchronizing node states and ensuring data consistency.
- Enhanced test reliability with increased timeouts and detailed logging.
2025-06-21 11:15:33 +03:00

30 lines
582 B
Docker

# Test Runner for Blog Integration Tests
FROM node:18-alpine
# Install dependencies
RUN apk add --no-cache curl jq
# Create app directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including dev dependencies for testing)
RUN npm ci && npm cache clean --force
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Create results directory
RUN mkdir -p /app/results
# Set environment variables
ENV NODE_ENV=test
ENV TEST_SCENARIO=blog
# Default command (can be overridden)
CMD ["npm", "run", "test:blog-integration"]